Commit 09b50b52 authored by Tachibana's avatar Tachibana

得得得得得

parent 833954d0
Pipeline #12019 passed with stages
in 41 minutes and 38 seconds
No preview for this file type
......@@ -20,7 +20,7 @@ function cm.initial_effect(c)
end
tc=g:GetNext()
end
return 1000 end)
return atk end)
.Clone("RegisterEffect")
.e("SetCode",EFFECT_UPDATE_DEFENSE)
.Return()).c("RegisterEffect",iFunc(c)
......@@ -92,7 +92,7 @@ function cm.drop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(g,REASON_EFFECT)
end
function cm.sdcon(e)
return not Duel.IsExistingMatchingCard(cm.sdfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
return not Duel.IsExistingMatchingCard(cm.sdfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
end
function iFunc(c,x)
local __this = (aux.GetValueType(c) == "Card" and {(x == nil and {Effect.CreateEffect(c)} or {x})[1]} or {x})[1]
......
......@@ -36,8 +36,6 @@ function cm.splimit(e,se,sp,st)
end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,0)
Debug.Message(#g)
Debug.Message(eg:IsExists(cm.filter,1,nil,tp,rp))
return #g==0 and eg:IsExists(cm.filter,1,nil,tp,rp) and Duel.GetFieldGroupCount(tp,LOCATION_SZONE,0)==0
end
function cm.filter(c,tp,rp)
......
......@@ -30,7 +30,6 @@ end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and cm.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(cm.filter,tp,LOCATION_GRAVE,0,1,nil)
and Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,0,1,nil)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,m,0,TYPES_EFFECT_TRAP_MONSTER,1400,2100,6,RACE_PLANT,ATTRIBUTE_WIND) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment