Commit 7dfda906 authored by POLYMER's avatar POLYMER

fix

parent ea70562d
......@@ -83,6 +83,7 @@ function c11560715.ovop(e,tp,eg,ep,ev,re,r,rp)
local og=g:Select(tp,1,1,nil)
local tc=og:GetFirst()
if tc and not tc:IsImmuneToEffect(e) then
tc:CancelToGrave()
Duel.Overlay(c,tc) end
end
if c:IsRelateToEffect(e) then
......@@ -131,6 +132,7 @@ function c11560715.xxop(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect()
local oc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c11560715.mxfilter),tp,LOCATION_GRAVE+LOCATION_ONFIELD,LOCATION_GRAVE+LOCATION_ONFIELD,1,1,c):GetFirst()
if oc and not oc:IsImmuneToEffect(e) then
oc:CancelToGrave()
Duel.Overlay(c,oc)
end
end
......
......@@ -48,13 +48,18 @@ function c72412150.disop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c72412150.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,72412150,RESET_PHASE+PHASE_END,0,1)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetCountLimit(1)
e1:SetLabel(Duel.GetTurnCount())
e1:SetCondition(c72412150.thcon)
e1:SetOperation(c72412150.thop)
if Duel.GetCurrentPhase()<=PHASE_STANDBY then
e1:SetReset(RESET_PHASE+PHASE_STANDBY,2)
else
e1:SetReset(RESET_PHASE+PHASE_STANDBY)
end
Duel.RegisterEffect(e1,tp)
end
function c72412150.thfilter(c,tp)
......@@ -62,8 +67,7 @@ function c72412150.thfilter(c,tp)
return (c:IsCode(72412160) or res) and c:IsAbleToHand()
end
function c72412150.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c72412150.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
and Duel.GetFlagEffect(tp,72412150)==0
return Duel.GetTurnCount()~=e:GetLabel() and Duel.IsExistingMatchingCard(c72412150.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
end
function c72412150.thop(e,tp,eg,ep,ev,re,r,rp)
Effect.Reset(e)
......
......@@ -55,13 +55,18 @@ function c72412160.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function c72412160.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,72412160,RESET_PHASE+PHASE_END,0,1)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetCountLimit(1)
e1:SetLabel(Duel.GetTurnCount())
e1:SetCondition(c72412160.thcon)
e1:SetOperation(c72412160.thop)
if Duel.GetCurrentPhase()<=PHASE_STANDBY then
e1:SetReset(RESET_PHASE+PHASE_STANDBY,2)
else
e1:SetReset(RESET_PHASE+PHASE_STANDBY)
end
Duel.RegisterEffect(e1,tp)
end
function c72412160.thfilter(c,tp)
......@@ -69,8 +74,7 @@ function c72412160.thfilter(c,tp)
return (c:IsCode(72412170) or res) and c:IsAbleToHand()
end
function c72412160.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c72412160.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
and Duel.GetFlagEffect(tp,72412160)==0
return Duel.GetTurnCount()~=e:GetLabel() and Duel.IsExistingMatchingCard(c72412160.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
end
function c72412160.thop(e,tp,eg,ep,ev,re,r,rp)
Effect.Reset(e)
......
......@@ -67,13 +67,18 @@ function c72412170.lvop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c72412170.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,72412170,RESET_PHASE+PHASE_END,0,1)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetCountLimit(1)
e1:SetLabel(Duel.GetTurnCount())
e1:SetCondition(c72412170.thcon)
e1:SetOperation(c72412170.thop)
if Duel.GetCurrentPhase()<=PHASE_STANDBY then
e1:SetReset(RESET_PHASE+PHASE_STANDBY,2)
else
e1:SetReset(RESET_PHASE+PHASE_STANDBY)
end
Duel.RegisterEffect(e1,tp)
end
function c72412170.thfilter(c,tp)
......@@ -81,8 +86,7 @@ function c72412170.thfilter(c,tp)
return (c:IsCode(72412180) or res) and c:IsAbleToHand()
end
function c72412170.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c72412170.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
and Duel.GetFlagEffect(tp,72412170)==0
return Duel.GetTurnCount()~=e:GetLabel() and Duel.IsExistingMatchingCard(c72412170.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
end
function c72412170.thop(e,tp,eg,ep,ev,re,r,rp)
Effect.Reset(e)
......
......@@ -39,13 +39,18 @@ function c72412180.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
function c72412180.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,72412180,RESET_PHASE+PHASE_END,0,1)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetCountLimit(1)
e1:SetLabel(Duel.GetTurnCount())
e1:SetCondition(c72412180.thcon)
e1:SetOperation(c72412180.thop)
if Duel.GetCurrentPhase()<=PHASE_STANDBY then
e1:SetReset(RESET_PHASE+PHASE_STANDBY,2)
else
e1:SetReset(RESET_PHASE+PHASE_STANDBY)
end
Duel.RegisterEffect(e1,tp)
end
function c72412180.thfilter(c,tp)
......@@ -53,8 +58,7 @@ function c72412180.thfilter(c,tp)
return (c:IsCode(72412190) or res) and c:IsAbleToHand()
end
function c72412180.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c72412180.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
and Duel.GetFlagEffect(tp,72412180)==0
return Duel.GetTurnCount()~=e:GetLabel() and Duel.IsExistingMatchingCard(c72412180.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
end
function c72412180.thop(e,tp,eg,ep,ev,re,r,rp)
Effect.Reset(e)
......
......@@ -46,13 +46,18 @@ function c72412190.negop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c72412190.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,72412190,RESET_PHASE+PHASE_END,0,1)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetCountLimit(1)
e1:SetLabel(Duel.GetTurnCount())
e1:SetCondition(c72412190.thcon)
e1:SetOperation(c72412190.thop)
if Duel.GetCurrentPhase()<=PHASE_STANDBY then
e1:SetReset(RESET_PHASE+PHASE_STANDBY,2)
else
e1:SetReset(RESET_PHASE+PHASE_STANDBY)
end
Duel.RegisterEffect(e1,tp)
end
function c72412190.thfilter(c,tp)
......@@ -60,8 +65,7 @@ function c72412190.thfilter(c,tp)
return (c:IsCode(72412200) or res) and c:IsAbleToHand()
end
function c72412190.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c72412190.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
and Duel.GetFlagEffect(tp,72412190)==0
return Duel.GetTurnCount()~=e:GetLabel() and Duel.IsExistingMatchingCard(c72412190.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
end
function c72412190.thop(e,tp,eg,ep,ev,re,r,rp)
Effect.Reset(e)
......
......@@ -47,13 +47,18 @@ function c72412200.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c72412200.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,72412200,RESET_PHASE+PHASE_END,0,1)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetCountLimit(1)
e1:SetLabel(Duel.GetTurnCount())
e1:SetCondition(c72412200.thcon)
e1:SetOperation(c72412200.thop)
if Duel.GetCurrentPhase()<=PHASE_STANDBY then
e1:SetReset(RESET_PHASE+PHASE_STANDBY,2)
else
e1:SetReset(RESET_PHASE+PHASE_STANDBY)
end
Duel.RegisterEffect(e1,tp)
end
function c72412200.thfilter(c,tp)
......@@ -61,8 +66,7 @@ function c72412200.thfilter(c,tp)
return (c:IsCode(72412210) or res) and c:IsAbleToHand()
end
function c72412200.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c72412200.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
and Duel.GetFlagEffect(tp,72412200)==0
return Duel.GetTurnCount()~=e:GetLabel() and Duel.IsExistingMatchingCard(c72412200.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
end
function c72412200.thop(e,tp,eg,ep,ev,re,r,rp)
Effect.Reset(e)
......
......@@ -49,13 +49,18 @@ function c72412210.drop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c72412210.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,72412210,RESET_PHASE+PHASE_END,0,1)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetCountLimit(1)
e1:SetLabel(Duel.GetTurnCount())
e1:SetCondition(c72412210.thcon)
e1:SetOperation(c72412210.thop)
if Duel.GetCurrentPhase()<=PHASE_STANDBY then
e1:SetReset(RESET_PHASE+PHASE_STANDBY,2)
else
e1:SetReset(RESET_PHASE+PHASE_STANDBY)
end
Duel.RegisterEffect(e1,tp)
end
function c72412210.thfilter(c,tp)
......@@ -63,8 +68,7 @@ function c72412210.thfilter(c,tp)
return (c:IsCode(72412220) or res) and c:IsAbleToHand()
end
function c72412210.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c72412210.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
and Duel.GetFlagEffect(tp,72412210)==0
return Duel.GetTurnCount()~=e:GetLabel() and Duel.IsExistingMatchingCard(c72412210.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
end
function c72412210.thop(e,tp,eg,ep,ev,re,r,rp)
Effect.Reset(e)
......
......@@ -43,13 +43,18 @@ function c72412220.deop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c72412220.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,72412220,RESET_PHASE+PHASE_END,0,1)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetCountLimit(1)
e1:SetLabel(Duel.GetTurnCount())
e1:SetCondition(c72412220.thcon)
e1:SetOperation(c72412220.thop)
if Duel.GetCurrentPhase()<=PHASE_STANDBY then
e1:SetReset(RESET_PHASE+PHASE_STANDBY,2)
else
e1:SetReset(RESET_PHASE+PHASE_STANDBY)
end
Duel.RegisterEffect(e1,tp)
end
function c72412220.thfilter(c,tp)
......@@ -57,8 +62,7 @@ function c72412220.thfilter(c,tp)
return (c:IsCode(72412230) or res) and c:IsAbleToHand()
end
function c72412220.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c72412220.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
and Duel.GetFlagEffect(tp,72412220)==0
return Duel.GetTurnCount()~=e:GetLabel() and Duel.IsExistingMatchingCard(c72412220.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
end
function c72412220.thop(e,tp,eg,ep,ev,re,r,rp)
Effect.Reset(e)
......
......@@ -38,13 +38,18 @@ function c72412230.reop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c72412230.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,72412230,RESET_PHASE+PHASE_END,0,1)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetCountLimit(1)
e1:SetLabel(Duel.GetTurnCount())
e1:SetCondition(c72412230.thcon)
e1:SetOperation(c72412230.thop)
if Duel.GetCurrentPhase()<=PHASE_STANDBY then
e1:SetReset(RESET_PHASE+PHASE_STANDBY,2)
else
e1:SetReset(RESET_PHASE+PHASE_STANDBY)
end
Duel.RegisterEffect(e1,tp)
end
function c72412230.thfilter(c,tp)
......@@ -52,8 +57,7 @@ function c72412230.thfilter(c,tp)
return (c:IsCode(72412240) or res) and c:IsAbleToHand()
end
function c72412230.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c72412230.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
and Duel.GetFlagEffect(tp,72412230)==0
return Duel.GetTurnCount()~=e:GetLabel() and Duel.IsExistingMatchingCard(c72412230.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
end
function c72412230.thop(e,tp,eg,ep,ev,re,r,rp)
Effect.Reset(e)
......
......@@ -46,13 +46,18 @@ function c72412240.disop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c72412240.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,72412240,RESET_PHASE+PHASE_END,0,1)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetCountLimit(1)
e1:SetLabel(Duel.GetTurnCount())
e1:SetCondition(c72412240.thcon)
e1:SetOperation(c72412240.thop)
if Duel.GetCurrentPhase()<=PHASE_STANDBY then
e1:SetReset(RESET_PHASE+PHASE_STANDBY,2)
else
e1:SetReset(RESET_PHASE+PHASE_STANDBY)
end
Duel.RegisterEffect(e1,tp)
end
function c72412240.thfilter(c,tp)
......@@ -60,8 +65,7 @@ function c72412240.thfilter(c,tp)
return (c:IsCode(72412250) or res) and c:IsAbleToHand()
end
function c72412240.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c72412240.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
and Duel.GetFlagEffect(tp,72412240)==0
return Duel.GetTurnCount()~=e:GetLabel() and Duel.IsExistingMatchingCard(c72412240.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
end
function c72412240.thop(e,tp,eg,ep,ev,re,r,rp)
Effect.Reset(e)
......
......@@ -37,13 +37,18 @@ function c72412250.reop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c72412250.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,72412250,RESET_PHASE+PHASE_END,0,1)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetCountLimit(1)
e1:SetLabel(Duel.GetTurnCount())
e1:SetCondition(c72412250.thcon)
e1:SetOperation(c72412250.thop)
if Duel.GetCurrentPhase()<=PHASE_STANDBY then
e1:SetReset(RESET_PHASE+PHASE_STANDBY,2)
else
e1:SetReset(RESET_PHASE+PHASE_STANDBY)
end
Duel.RegisterEffect(e1,tp)
end
function c72412250.thfilter(c,tp)
......@@ -51,8 +56,7 @@ function c72412250.thfilter(c,tp)
return (c:IsCode(72412260) or res) and c:IsAbleToHand()
end
function c72412250.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c72412250.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
and Duel.GetFlagEffect(tp,72412250)==0
return Duel.GetTurnCount()~=e:GetLabel() and Duel.IsExistingMatchingCard(c72412250.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
end
function c72412250.thop(e,tp,eg,ep,ev,re,r,rp)
Effect.Reset(e)
......
......@@ -46,13 +46,18 @@ function c72412260.drop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c72412260.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,72412260,RESET_PHASE+PHASE_END,0,1)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetCountLimit(1)
e1:SetLabel(Duel.GetTurnCount())
e1:SetCondition(c72412260.thcon)
e1:SetOperation(c72412260.thop)
if Duel.GetCurrentPhase()<=PHASE_STANDBY then
e1:SetReset(RESET_PHASE+PHASE_STANDBY,2)
else
e1:SetReset(RESET_PHASE+PHASE_STANDBY)
end
Duel.RegisterEffect(e1,tp)
end
function c72412260.thfilter(c,tp)
......@@ -60,8 +65,7 @@ function c72412260.thfilter(c,tp)
return (c:IsCode(72412150) or res) and c:IsAbleToHand()
end
function c72412260.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c72412260.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
and Duel.GetFlagEffect(tp,72412260)==0
return Duel.GetTurnCount()~=e:GetLabel() and Duel.IsExistingMatchingCard(c72412260.thfilter,tp,LOCATION_DECK,0,1,nil,tp)
end
function c72412260.thop(e,tp,eg,ep,ev,re,r,rp)
Effect.Reset(e)
......
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