Commit 6fdd154c authored by DailyShana's avatar DailyShana

fix

parent 1cb870d9
......@@ -80,7 +80,7 @@ function c3096468.synop(e,tp,eg,ep,ev,re,r,rp,syncard,f,min,max)
g:Merge(sg)
end
if g:IsExists(Card.IsLocation,1,nil,LOCATION_HAND) then
for tc in Auxiliary.Next(g) do
for tc in aux.Next(g) do
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -7,11 +7,17 @@ function c70832512.initial_effect(c)
e1:SetType(EFFECT_TYPE_TRIGGER_F+EFFECT_TYPE_FIELD)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c70832512.condition)
e1:SetCost(c70832512.cost)
e1:SetTarget(c70832512.target)
e1:SetOperation(c70832512.operation)
c:RegisterEffect(e1)
end
function c70832512.condition(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():GetFlagEffect(70832512)~=0 then return false end
e:GetHandler():RegisterFlagEffect(70832512,RESET_EVENT+RESETS_STANDARD+RESET_CHAIN,0,1)
return true
end
function c70832512.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and e:GetHandler():IsReleasable() end
Duel.Release(e:GetHandler(),REASON_COST)
......@@ -20,12 +26,7 @@ function c70832512.dfilter(c,e)
return c:IsFaceup() and c:IsLevelAbove(5) and (not e or c:IsRelateToEffect(e))
end
function c70832512.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
if not eg:IsExists(c70832512.dfilter,1,nil) then return false end
if e:GetHandler():IsStatus(STATUS_CHAINING) then return false end
e:GetHandler():SetStatus(STATUS_CHAINING,true)
return true
end
if chk==0 then return eg:IsExists(c70832512.dfilter,1,nil) end
Duel.SetTargetCard(eg)
end
function c70832512.operation(e,tp,eg,ep,ev,re,r,rp)
......
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