Commit 2d3e54b3 authored by nekrozar's avatar nekrozar

fix

parent 754fc2eb
...@@ -15,12 +15,10 @@ function c73632127.initial_effect(c) ...@@ -15,12 +15,10 @@ function c73632127.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_TRAP_ACT_IN_SET_TURN) e2:SetCode(EFFECT_TRAP_ACT_IN_SET_TURN)
e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE) e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e2:SetCondition(c73632127.actcon)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c73632127.condition(e,tp,eg,ep,ev,re,r,rp) function c73632127.condition(e,tp,eg,ep,ev,re,r,rp)
if eg:GetCount()==1 and eg:GetFirst():GetSummonType()==SUMMON_TYPE_XYZ
and eg:GetFirst():IsControler(tp) then return true end
if e:GetHandler():IsStatus(STATUS_SET_TURN) then return false end
return eg:IsExists(Card.IsControler,1,nil,tp) return eg:IsExists(Card.IsControler,1,nil,tp)
end end
function c73632127.filter(c) function c73632127.filter(c)
...@@ -39,3 +37,9 @@ function c73632127.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,3 +37,9 @@ function c73632127.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
end end
end end
function c73632127.actcon(e)
local res,teg,tep,tev,tre,tr,trp=Duel.CheckEvent(EVENT_SPSUMMON_SUCCESS,true)
if res then
return teg:GetCount()==1 and teg:GetFirst():GetSummonType()==SUMMON_TYPE_XYZ
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