Commit 10ed38bb authored by VanillaSalt's avatar VanillaSalt

update

parent 7d9f7c3c
...@@ -19,21 +19,22 @@ function c82003859.initial_effect(c) ...@@ -19,21 +19,22 @@ function c82003859.initial_effect(c)
--accumulate --accumulate
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD) e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(0x10000000+82003859) e3:SetCode(82003859)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e3:SetTargetRange(LOCATION_SZONE,LOCATION_SZONE)
e3:SetTargetRange(1,1)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c82003859.filter(c,fid)
return c:IsHasEffect(82003859) and c:GetFieldID()<fid
end
function c82003859.atcon(e) function c82003859.atcon(e)
c82003859[0]=false return not Duel.IsExistingMatchingCard(c82003859.filter,0,LOCATION_SZONE,LOCATION_SZONE,1,nil,e:GetHandler():GetFieldID())
return true
end end
function c82003859.atcost(e,c,tp) function c82003859.atcost(e,c,tp)
return Duel.CheckLPCost(tp,500) local ct=Duel.GetMatchingGroupCount(Card.IsHasEffect,0,LOCATION_SZONE,LOCATION_SZONE,nil,82003859)
return Duel.CheckLPCost(tp,ct*500)
end end
function c82003859.atop(e,tp,eg,ep,ev,re,r,rp) function c82003859.atop(e,tp,eg,ep,ev,re,r,rp)
if c82003859[0] then return end local ct=Duel.GetMatchingGroupCount(Card.IsHasEffect,0,LOCATION_SZONE,LOCATION_SZONE,nil,82003859)
Duel.PayLPCost(tp,Duel.GetFlagEffect(tp,82003859)*500) Duel.PayLPCost(tp,ct*500)
c82003859[0]=true
end end
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