Commit 54f848d1 authored by Tachibana's avatar Tachibana

ndyd

parent bf7236d4
Pipeline #5306 failed with stages
in 17 minutes and 7 seconds
......@@ -75,7 +75,7 @@ function XY.zsop1(e,tp,eg,ep,ev,re,r,rp)
end
function XY.handcon(e)
return Duel.IsExistingMatchingCard(XY.hdfilter,e:GetHandlerPlayer(),LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) and Duel.GetFieldGroupCount(tp,LOCATION_EXTRA,0)==0
return Duel.IsExistingMatchingCard(XY.hdfilter,e:GetHandlerPlayer(),LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) and Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_EXTRA,0)==0
end
function XY.hdfilter(c)
return c:IsFaceup() and c:IsCode(33403500)
......@@ -963,7 +963,7 @@ function XY.maganethfilter0(c,tp)
end
return ss==1
end
function XY.maganethfilter10(c,tp)
function XY.maganeckfilter10(c,tp)
local ss=0
if c:IsCode(33403521) and Duel.IsExistingMatchingCard(XY.maganethfilter1,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) then
ss=1
......@@ -1098,7 +1098,7 @@ function XY.maganere5(e,tp,eg,ep,ev,re,r,rp)
local g3=Duel.SelectMatchingCard(tp,Card.IsAbleToChangeControler,tp,0,LOCATION_MZONE,1,3,nil)
if g3:GetCount()>0 and Duel.GetControl(g3,tp)~=0 then
local tc1=g3:GetFirst()
local at1=tg1:GetAttack()
local at1=tc1:GetAttack()
local tc2=g3:GetNext()
while tc2 do
at1=at1+tc2:GetAttack()
......@@ -1184,21 +1184,21 @@ function XY.maganere8(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e3)
tc=g:GetNext()
end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetTargetRange(0,1)
e1:SetCondition(XY.maganeactcon)
e1:SetValue(1)
local e4=Effect.CreateEffect(e:GetHandler())
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetCode(EFFECT_CANNOT_ACTIVATE)
e4:SetTargetRange(0,1)
e4:SetCondition(XY.maganeactcon)
e4:SetValue(1)
if Duel.GetTurnPlayer()==tp then
e0:SetLabel(Duel.GetTurnCount())
e0:SetCondition(XY.maganebpcon6)
e0:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,2)
e4:SetLabel(Duel.GetTurnCount())
e4:SetCondition(XY.maganebpcon6)
e4:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,2)
else
e0:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,1)
e4:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,1)
end
Duel.RegisterEffect(e1,tp)
Duel.RegisterEffect(e4,tp)
Duel.RegisterFlagEffect(tp,33413528,RESET_EVENT+RESET_PHASE+PHASE_END,0,0)
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