Commit f3bd1fa8 authored by VanillaSalt's avatar VanillaSalt

update

parent 10ed38bb
...@@ -21,6 +21,14 @@ function c23851033.initial_effect(c) ...@@ -21,6 +21,14 @@ function c23851033.initial_effect(c)
e2:SetCost(c23851033.costchk) e2:SetCost(c23851033.costchk)
e2:SetOperation(c23851033.costop) e2:SetOperation(c23851033.costop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--accumulate
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(0x10000000+23851033)
e3:SetRange(LOCATION_MZONE)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetTargetRange(0,1)
c:RegisterEffect(e3)
end end
function c23851033.filter(c) function c23851033.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
...@@ -39,7 +47,8 @@ function c23851033.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +47,8 @@ function c23851033.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.SendtoHand(sg,nil,REASON_EFFECT)
end end
function c23851033.costchk(e,te_or_c,tp) function c23851033.costchk(e,te_or_c,tp)
return Duel.CheckLPCost(tp,500) local ct=Duel.GetFlagEffect(tp,23851033)
return Duel.CheckLPCost(tp,ct*500)
end end
function c23851033.costop(e,tp,eg,ep,ev,re,r,rp) function c23851033.costop(e,tp,eg,ep,ev,re,r,rp)
Duel.PayLPCost(tp,500) Duel.PayLPCost(tp,500)
......
...@@ -35,12 +35,21 @@ function c79323590.initial_effect(c) ...@@ -35,12 +35,21 @@ function c79323590.initial_effect(c)
local e6=e3:Clone() local e6=e3:Clone()
e6:SetCode(EFFECT_SSET_COST) e6:SetCode(EFFECT_SSET_COST)
c:RegisterEffect(e6) c:RegisterEffect(e6)
--accumulate
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_FIELD)
e7:SetCode(0x10000000+79323590)
e7:SetRange(LOCATION_SZONE)
e7:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e7:SetTargetRange(1,1)
c:RegisterEffect(e7)
end end
function c79323590.actarget(e,te,tp) function c79323590.actarget(e,te,tp)
return te:GetHandler():IsLocation(LOCATION_HAND) return te:GetHandler():IsLocation(LOCATION_HAND)
end end
function c79323590.costchk(e,te_or_c,tp) function c79323590.costchk(e,te_or_c,tp)
return Duel.CheckLPCost(tp,500) local ct=Duel.GetFlagEffect(tp,79323590)
return Duel.CheckLPCost(tp,ct*500)
end end
function c79323590.costop(e,tp,eg,ep,ev,re,r,rp) function c79323590.costop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,79323590) Duel.Hint(HINT_CARD,0,79323590)
......
...@@ -12,29 +12,22 @@ function c82003859.initial_effect(c) ...@@ -12,29 +12,22 @@ function c82003859.initial_effect(c)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetTargetRange(1,1) e2:SetTargetRange(1,1)
e2:SetCondition(c82003859.atcon)
e2:SetCost(c82003859.atcost) e2:SetCost(c82003859.atcost)
e2:SetOperation(c82003859.atop) e2:SetOperation(c82003859.atop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--accumulate --accumulate
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD) e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(82003859) e3:SetCode(0x10000000+82003859)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e3:SetTargetRange(LOCATION_SZONE,LOCATION_SZONE) e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
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)
return not Duel.IsExistingMatchingCard(c82003859.filter,0,LOCATION_SZONE,LOCATION_SZONE,1,nil,e:GetHandler():GetFieldID())
end
function c82003859.atcost(e,c,tp) function c82003859.atcost(e,c,tp)
local ct=Duel.GetMatchingGroupCount(Card.IsHasEffect,0,LOCATION_SZONE,LOCATION_SZONE,nil,82003859) local ct=Duel.GetFlagEffect(tp,82003859)
return Duel.CheckLPCost(tp,ct*500) 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)
local ct=Duel.GetMatchingGroupCount(Card.IsHasEffect,0,LOCATION_SZONE,LOCATION_SZONE,nil,82003859) Duel.PayLPCost(tp,500)
Duel.PayLPCost(tp,ct*500)
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