Commit f5465930 authored by TanakaKotoha's avatar TanakaKotoha

lbwnb

parent a64d8e53
......@@ -37,6 +37,7 @@ function cm.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCountLimit(1,17061330)
e2:SetCondition(cm.drcon)
e2:SetTarget(cm.drtg)
e2:SetOperation(cm.drop)
c:RegisterEffect(e2)
......@@ -226,6 +227,9 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(g,REASON_EFFECT)
end
end
function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
Duel.SetTargetPlayer(tp)
......
......@@ -137,11 +137,10 @@ function cm.regcon(e,tp,eg,ep,ev,re,r,rp)
end
function cm.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
c:RegisterFlagEffect(17062090,RESET_EVENT+RESETS_STANDARD,0,1)
c:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(17062090,3))
c:RegisterFlagEffect(17062090,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(17062090,3))
end
function cm.xacon(e)
return e:GetHandler():GetFlagEffect(170620090)>0
return e:GetHandler():GetFlagEffect(17062090)>0
end
function cm.efilter(e,re)
return e:GetOwnerPlayer()~=re:GetOwnerPlayer()
......@@ -149,7 +148,7 @@ end
function cm.atkcon(e)
local ph=Duel.GetCurrentPhase()
local bc=e:GetHandler():GetBattleTarget()
return (ph==PHASE_DAMAGE or ph==PHASE_DAMAGE_CAL) and bc and e:GetHandler():GetFlagEffect(170620090)>0 and not bc:IsType(TYPE_PENDULUM)
return (ph==PHASE_DAMAGE or ph==PHASE_DAMAGE_CAL) and bc and e:GetHandler():GetFlagEffect(17062090)>0 and not bc:IsType(TYPE_PENDULUM)
end
function cm.atkval(e,c)
return e:GetHandler():GetAttack()*2
......
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