Commit 41ac36a2 authored by VanillaSalt's avatar VanillaSalt

update

parent 3b913937
...@@ -28,8 +28,5 @@ end ...@@ -28,8 +28,5 @@ end
function c10132124.spop(e,tp,eg,ep,ev,re,r,rp) function c10132124.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -35,8 +35,5 @@ end ...@@ -35,8 +35,5 @@ end
function c10178757.operation(e,tp,eg,ep,ev,re,r,rp) function c10178757.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -31,10 +31,7 @@ function c10194329.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,10 +31,7 @@ function c10194329.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c10194329.splimit(e,c,sump,sumtype,sumpos,targetp,se) function c10194329.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsSetCard(0xba) and c:IsLocation(LOCATION_EXTRA) return not c:IsSetCard(0xba) and c:IsLocation(LOCATION_EXTRA)
......
...@@ -54,10 +54,7 @@ end ...@@ -54,10 +54,7 @@ end
function c10449150.spop(e,tp,eg,ep,ev,re,r,rp) function c10449150.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c10449150.damcon(e,tp,eg,ep,ev,re,r,rp) function c10449150.damcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1 return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
......
...@@ -47,10 +47,7 @@ end ...@@ -47,10 +47,7 @@ end
function c10530913.spop(e,tp,eg,ep,ev,re,r,rp) function c10530913.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c10530913.target(e,tp,eg,ep,ev,re,r,rp,chk) function c10530913.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) end if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) end
......
...@@ -77,8 +77,5 @@ end ...@@ -77,8 +77,5 @@ end
function c11366199.spop(e,tp,eg,ep,ev,re,r,rp) function c11366199.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -87,10 +87,7 @@ end ...@@ -87,10 +87,7 @@ end
function c11678191.spop(e,tp,eg,ep,ev,re,r,rp) function c11678191.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c11678191.postg(e,tp,eg,ep,ev,re,r,rp,chk) function c11678191.postg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -49,10 +49,7 @@ end ...@@ -49,10 +49,7 @@ end
function c122520.spop(e,tp,eg,ep,ev,re,r,rp) function c122520.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c122520.distg(e,c) function c122520.distg(e,c)
return c==e:GetHandler():GetBattleTarget() return c==e:GetHandler():GetBattleTarget()
......
...@@ -64,9 +64,6 @@ function c12275533.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,9 +64,6 @@ function c12275533.operation(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+0x1fe0000) e2:SetReset(RESET_EVENT+0x1fe0000)
e2:SetOperation(c12275533.adjustop) e2:SetOperation(c12275533.adjustop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c12275533.efilter(e,te) function c12275533.efilter(e,te)
......
...@@ -75,9 +75,7 @@ end ...@@ -75,9 +75,7 @@ end
function c12289247.spop(e,tp,eg,ep,ev,re,r,rp) function c12289247.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 then
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
return return
end end
local g=Duel.GetMatchingGroup(Card.IsCanBeSpecialSummoned,tp,LOCATION_HAND,0,nil,e,0,tp,false,false) local g=Duel.GetMatchingGroup(Card.IsCanBeSpecialSummoned,tp,LOCATION_HAND,0,nil,e,0,tp,false,false)
......
...@@ -33,10 +33,7 @@ end ...@@ -33,10 +33,7 @@ end
function c12423762.spop(e,tp,eg,ep,ev,re,r,rp) function c12423762.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c12423762.indcost(e,tp,eg,ep,ev,re,r,rp,chk) function c12423762.indcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
......
...@@ -87,10 +87,7 @@ end ...@@ -87,10 +87,7 @@ end
function c12965761.spop(e,tp,eg,ep,ev,re,r,rp) function c12965761.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c12965761.tkcon(e,tp,eg,ep,ev,re,r,rp) function c12965761.tkcon(e,tp,eg,ep,ev,re,r,rp)
return aux.IsUnionState(e) and eg:GetFirst()==e:GetHandler():GetEquipTarget() return aux.IsUnionState(e) and eg:GetFirst()==e:GetHandler():GetEquipTarget()
......
...@@ -56,9 +56,6 @@ function c13647631.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,9 +56,6 @@ function c13647631.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(def/2) e2:SetValue(def/2)
c:RegisterEffect(e2) c:RegisterEffect(e2)
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c13647631.descon(e,tp,eg,ep,ev,re,r,rp) function c13647631.descon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -65,8 +65,5 @@ end ...@@ -65,8 +65,5 @@ end
function c14624296.spop(e,tp,eg,ep,ev,re,r,rp) function c14624296.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -38,10 +38,7 @@ end ...@@ -38,10 +38,7 @@ end
function c14677495.spop1(e,tp,eg,ep,ev,re,r,rp) function c14677495.spop1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c14677495.spcon2(e,tp,eg,ep,ev,re,r,rp) function c14677495.spcon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetPosition()==POS_FACEUP_ATTACK and e:GetHandler():GetPreviousPosition()>0x3 return e:GetHandler():GetPosition()==POS_FACEUP_ATTACK and e:GetHandler():GetPreviousPosition()>0x3
......
...@@ -40,10 +40,8 @@ function c15033525.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -40,10 +40,8 @@ function c15033525.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c15033525.spop(e,tp,eg,ep,ev,re,r,rp) function c15033525.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 if c:IsRelateToEffect(e) then
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
......
...@@ -32,10 +32,7 @@ end ...@@ -32,10 +32,7 @@ end
function c15475415.spop(e,tp,eg,ep,ev,re,r,rp) function c15475415.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c15475415.ctcon(e,tp,eg,ep,ev,re,r,rp) function c15475415.ctcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1 return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
......
...@@ -49,8 +49,5 @@ function c15495787.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,8 +49,5 @@ function c15495787.spop(e,tp,eg,ep,ev,re,r,rp)
local e2=e1:Clone() local e2=e1:Clone()
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
c:RegisterEffect(e2) c:RegisterEffect(e2)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
...@@ -74,8 +74,5 @@ end ...@@ -74,8 +74,5 @@ end
function c15610297.spop(e,tp,eg,ep,ev,re,r,rp) function c15610297.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -35,9 +35,6 @@ function c15721123.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,9 +35,6 @@ function c15721123.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(c15721123.efilter) e1:SetValue(c15721123.efilter)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1) c:RegisterEffect(e1)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c15721123.efilter(e,te) function c15721123.efilter(e,te)
......
...@@ -27,8 +27,5 @@ end ...@@ -27,8 +27,5 @@ end
function c16111820.operation(e,tp,eg,ep,ev,re,r,rp) function c16111820.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -28,8 +28,5 @@ function c16947147.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -28,8 +28,5 @@ function c16947147.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_ATTACK)~=0 then if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_ATTACK)~=0 then
local g=Duel.GetMatchingGroup(Card.IsPosition,tp,0,LOCATION_MZONE,nil,POS_FACEUP_ATTACK) local g=Duel.GetMatchingGroup(Card.IsPosition,tp,0,LOCATION_MZONE,nil,POS_FACEUP_ATTACK)
Duel.ChangePosition(g,POS_FACEUP_DEFENSE) Duel.ChangePosition(g,POS_FACEUP_DEFENSE)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
...@@ -35,9 +35,8 @@ function c17141718.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -35,9 +35,8 @@ function c17141718.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c17141718.spop(e,tp,eg,ep,ev,re,r,rp) function c17141718.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 if c:IsRelateToEffect(e) then
and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
Duel.SendtoGrave(c,REASON_RULE)
end end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
......
...@@ -76,9 +76,6 @@ function c18175965.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,9 +76,6 @@ function c18175965.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then
c:CompleteProcedure() c:CompleteProcedure()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c18175965.filter(c,ec) function c18175965.filter(c,ec)
......
...@@ -87,10 +87,7 @@ end ...@@ -87,10 +87,7 @@ end
function c19086954.spop(e,tp,eg,ep,ev,re,r,rp) function c19086954.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c19086954.postg(e,tp,eg,ep,ev,re,r,rp,chk) function c19086954.postg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -30,8 +30,5 @@ end ...@@ -30,8 +30,5 @@ end
function c19353570.spop(e,tp,eg,ep,ev,re,r,rp) function c19353570.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -40,8 +40,5 @@ function c19580308.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,8 +40,5 @@ function c19580308.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x47e0000) e1:SetReset(RESET_EVENT+0x47e0000)
e1:SetValue(LOCATION_REMOVED) e1:SetValue(LOCATION_REMOVED)
c:RegisterEffect(e1,true) c:RegisterEffect(e1,true)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
...@@ -54,10 +54,7 @@ function c20056760.spop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,10 +54,7 @@ function c20056760.spop1(e,tp,eg,ep,ev,re,r,rp)
if Duel.Destroy(g,REASON_EFFECT)~=0 then if Duel.Destroy(g,REASON_EFFECT)~=0 then
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
end end
function c20056760.spcon2(e,tp,eg,ep,ev,re,r,rp) function c20056760.spcon2(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -46,8 +46,5 @@ end ...@@ -46,8 +46,5 @@ end
function c20773176.operation(e,tp,eg,ep,ev,re,r,rp) function c20773176.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -36,8 +36,5 @@ end ...@@ -36,8 +36,5 @@ end
function c20838380.spop(e,tp,eg,ep,ev,re,r,rp) function c20838380.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -24,8 +24,5 @@ function c21051977.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -24,8 +24,5 @@ function c21051977.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -79,9 +79,6 @@ function c21250202.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,9 +79,6 @@ function c21250202.spop(e,tp,eg,ep,ev,re,r,rp)
if tc then if tc then
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
end end
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c21250202.disfilter(c) function c21250202.disfilter(c)
......
...@@ -46,10 +46,7 @@ end ...@@ -46,10 +46,7 @@ end
function c21954587.spop(e,tp,eg,ep,ev,re,r,rp) function c21954587.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c21954587.thcon(e,tp,eg,ep,ev,re,r,rp) function c21954587.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1 return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
......
...@@ -47,10 +47,7 @@ function c22382087.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,10 +47,7 @@ function c22382087.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetTarget(c22382087.splimit) e1:SetTarget(c22382087.splimit)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c22382087.splimit(e,c,sump,sumtype,sumpos,targetp,se) function c22382087.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsLocation(LOCATION_EXTRA) return c:IsLocation(LOCATION_EXTRA)
......
...@@ -37,10 +37,7 @@ end ...@@ -37,10 +37,7 @@ end
function c22446869.spop(e,tp,eg,ep,ev,re,r,rp) function c22446869.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c22446869.thcon(e,tp,eg,ep,ev,re,r,rp) function c22446869.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1 return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
......
...@@ -58,9 +58,6 @@ function c22804410.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,9 +58,6 @@ function c22804410.spop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsRace,tp,LOCATION_GRAVE,0,nil,RACE_DRAGON) local g=Duel.GetMatchingGroup(Card.IsRace,tp,LOCATION_GRAVE,0,nil,RACE_DRAGON)
local dam=g:GetClassCount(Card.GetCode)*600 local dam=g:GetClassCount(Card.GetCode)*600
Duel.Damage(1-tp,dam,REASON_EFFECT) Duel.Damage(1-tp,dam,REASON_EFFECT)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c22804410.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c22804410.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -82,8 +82,5 @@ end ...@@ -82,8 +82,5 @@ end
function c23265594.spop(e,tp,eg,ep,ev,re,r,rp) function c23265594.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -57,10 +57,7 @@ function c23296404.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,10 +57,7 @@ function c23296404.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.Destroy(g,REASON_EFFECT)~=0 then if Duel.Destroy(g,REASON_EFFECT)~=0 then
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
end end
function c23296404.thfilter(c) function c23296404.thfilter(c)
......
...@@ -50,10 +50,7 @@ end ...@@ -50,10 +50,7 @@ end
function c23979249.spop(e,tp,eg,ep,ev,re,r,rp) function c23979249.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c23979249.regfilter(c,tp) function c23979249.regfilter(c,tp)
return c:IsSetCard(0x88) and c:IsControler(tp) and c:GetPreviousControler()==tp return c:IsSetCard(0x88) and c:IsControler(tp) and c:GetPreviousControler()==tp
......
...@@ -34,10 +34,7 @@ end ...@@ -34,10 +34,7 @@ end
function c24658418.operation(e,tp,eg,ep,ev,re,r,rp) function c24658418.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP_DEFENSE)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP_DEFENSE)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c24658418.spcon(e,tp,eg,ep,ev,re,r,rp) function c24658418.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1 return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
......
...@@ -119,8 +119,5 @@ end ...@@ -119,8 +119,5 @@ end
function c24696097.sumop(e,tp,eg,ep,ev,re,r,rp) function c24696097.sumop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -51,8 +51,5 @@ function c24731453.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,8 +51,5 @@ function c24731453.spop(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.Destroy(g,REASON_EFFECT) local ct=Duel.Destroy(g,REASON_EFFECT)
Duel.Damage(1-tp,ct*200,REASON_EFFECT) Duel.Damage(1-tp,ct*200,REASON_EFFECT)
end end
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
...@@ -91,9 +91,6 @@ function c24857466.hspop(e,tp,eg,ep,ev,re,r,rp) ...@@ -91,9 +91,6 @@ function c24857466.hspop(e,tp,eg,ep,ev,re,r,rp)
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then
local tpe=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM) local tpe=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM)
Duel.RaiseSingleEvent(c,EVENT_CUSTOM+24857466,e,0,0,tp,tpe) Duel.RaiseSingleEvent(c,EVENT_CUSTOM+24857466,e,0,0,tp,tpe)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c24857466.damcon(e,tp,eg,ep,ev,re,r,rp) function c24857466.damcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -27,8 +27,5 @@ end ...@@ -27,8 +27,5 @@ end
function c25206027.spop(e,tp,eg,ep,ev,re,r,rp) function c25206027.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -40,10 +40,7 @@ end ...@@ -40,10 +40,7 @@ end
function c25339070.spop(e,tp,eg,ep,ev,re,r,rp) function c25339070.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c25339070.cpcost(e,tp,eg,ep,ev,re,r,rp,chk) function c25339070.cpcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,1000) end if chk==0 then return Duel.CheckLPCost(tp,1000) end
......
...@@ -38,10 +38,7 @@ end ...@@ -38,10 +38,7 @@ end
function c25484449.spop(e,tp,eg,ep,ev,re,r,rp) function c25484449.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c25484449.lvtg(e,tp,eg,ep,ev,re,r,rp,chk) function c25484449.lvtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -63,10 +63,7 @@ end ...@@ -63,10 +63,7 @@ end
function c26400609.hspop(e,tp,eg,ep,ev,re,r,rp) function c26400609.hspop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c26400609.retcon(e,tp,eg,ep,ev,re,r,rp) function c26400609.retcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp return Duel.GetTurnPlayer()~=tp
......
...@@ -35,10 +35,7 @@ end ...@@ -35,10 +35,7 @@ end
function c26775203.operation(e,tp,eg,ep,ev,re,r,rp) function c26775203.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c26775203.adchange(e,tp,eg,ep,ev,re,r,rp) function c26775203.adchange(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -63,10 +63,7 @@ end ...@@ -63,10 +63,7 @@ end
function c27769400.spop(e,tp,eg,ep,ev,re,r,rp) function c27769400.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c27769400.descon(e,tp,eg,ep,ev,re,r,rp) function c27769400.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1 return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
......
...@@ -52,9 +52,6 @@ function c27911549.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,9 +52,6 @@ function c27911549.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(RACE_INSECT) e1:SetValue(RACE_INSECT)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1) c:RegisterEffect(e1)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
end end
...@@ -84,10 +84,7 @@ end ...@@ -84,10 +84,7 @@ end
function c29071332.spop(e,tp,eg,ep,ev,re,r,rp) function c29071332.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c29071332.damcon(e,tp,eg,ep,ev,re,r,rp) function c29071332.damcon(e,tp,eg,ep,ev,re,r,rp)
local eqc=e:GetHandler():GetEquipTarget() local eqc=e:GetHandler():GetEquipTarget()
......
...@@ -33,10 +33,7 @@ end ...@@ -33,10 +33,7 @@ end
function c293542.spop(e,tp,eg,ep,ev,re,r,rp) function c293542.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c293542.regop(e,tp,eg,ep,ev,re,r,rp) function c293542.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -29,8 +29,5 @@ function c29905795.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -29,8 +29,5 @@ function c29905795.op(e,tp,eg,ep,ev,re,r,rp)
end end
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -85,10 +85,7 @@ end ...@@ -85,10 +85,7 @@ end
function c30012506.spop(e,tp,eg,ep,ev,re,r,rp) function c30012506.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c30012506.repval(e,re,r,rp) function c30012506.repval(e,re,r,rp)
return bit.band(r,REASON_BATTLE)~=0 or bit.band(r,REASON_EFFECT)~=0 return bit.band(r,REASON_BATTLE)~=0 or bit.band(r,REASON_EFFECT)~=0
......
...@@ -71,10 +71,6 @@ function c30539496.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,10 +71,6 @@ function c30539496.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.Destroy(g1,REASON_EFFECT)==2 then if Duel.Destroy(g1,REASON_EFFECT)==2 then
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 then if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 then
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
return return
end end
local rg=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_EXTRA,nil) local rg=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_EXTRA,nil)
......
...@@ -19,7 +19,7 @@ function c30915572.sptarget(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -19,7 +19,7 @@ function c30915572.sptarget(e,tp,eg,ep,ev,re,r,rp,chk)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,1)
end end
function c30915572.spoperation(e,tp,eg,ep,ev,re,r,rp,c) function c30915572.spoperation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
Duel.DiscardDeck(tp,1,REASON_EFFECT) Duel.DiscardDeck(tp,1,REASON_EFFECT)
local g=Duel.GetOperatedGroup() local g=Duel.GetOperatedGroup()
...@@ -29,10 +29,7 @@ function c30915572.spoperation(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -29,10 +29,7 @@ function c30915572.spoperation(e,tp,eg,ep,ev,re,r,rp,c)
if tc:IsType(TYPE_MONSTER) then if tc:IsType(TYPE_MONSTER) then
Duel.Damage(1-tp,tc:GetLevel()*200,REASON_EFFECT) Duel.Damage(1-tp,tc:GetLevel()*200,REASON_EFFECT)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
else else
if c:IsRelateToEffect(e) then Duel.Destroy(c,REASON_EFFECT) end if c:IsRelateToEffect(e) then Duel.Destroy(c,REASON_EFFECT) end
end end
......
...@@ -46,9 +46,6 @@ function c3167573.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,9 +46,6 @@ function c3167573.spop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterFlagEffect(3167573,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END+RESET_SELF_TURN,0,1) c:RegisterFlagEffect(3167573,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END+RESET_SELF_TURN,0,1)
e2:SetLabel(Duel.GetTurnCount()+1) e2:SetLabel(Duel.GetTurnCount()+1)
end end
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c3167573.descon(e,tp,eg,ep,ev,re,r,rp) function c3167573.descon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -84,10 +84,7 @@ end ...@@ -84,10 +84,7 @@ end
function c31768112.spop(e,tp,eg,ep,ev,re,r,rp) function c31768112.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c31768112.drcon(e,tp,eg,ep,ev,re,r,rp) function c31768112.drcon(e,tp,eg,ep,ev,re,r,rp)
return aux.IsUnionState(e) and e:GetHandler():GetEquipTarget()==eg:GetFirst() return aux.IsUnionState(e) and e:GetHandler():GetEquipTarget()==eg:GetFirst()
......
...@@ -65,9 +65,6 @@ function c31930787.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,9 +65,6 @@ function c31930787.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then
c:CompleteProcedure() c:CompleteProcedure()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c31930787.antarget(e,c) function c31930787.antarget(e,c)
...@@ -127,7 +124,7 @@ function c31930787.dircost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -127,7 +124,7 @@ function c31930787.dircost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=e:GetHandler():GetEquipGroup():FilterSelect(tp,c31930787.dcfilter,1,1,nil) local g=e:GetHandler():GetEquipGroup():FilterSelect(tp,c31930787.dcfilter,1,1,nil)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
end end
function c31930787.dirop(e,tp,eg,ep,ev,re,r,rp,chk) function c31930787.dirop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsFacedown() or not c:IsRelateToEffect(e) then return end if c:IsFacedown() or not c:IsRelateToEffect(e) then return end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -46,10 +46,7 @@ end ...@@ -46,10 +46,7 @@ end
function c33656832.spop(e,tp,eg,ep,ev,re,r,rp) function c33656832.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c33656832.spcon2(e,tp,eg,ep,ev,re,r,rp) function c33656832.spcon2(e,tp,eg,ep,ev,re,r,rp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) return re:IsHasType(EFFECT_TYPE_ACTIVATE)
......
...@@ -71,10 +71,7 @@ end ...@@ -71,10 +71,7 @@ end
function c33776734.spop(e,tp,eg,ep,ev,re,r,rp) function c33776734.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c33776734.rmtarget(e,c) function c33776734.rmtarget(e,c)
return c:IsFaceup() and c:GetFlagEffect(33776734)>0 return c:IsFaceup() and c:GetFlagEffect(33776734)>0
......
...@@ -38,10 +38,7 @@ end ...@@ -38,10 +38,7 @@ end
function c33823832.spop(e,tp,eg,ep,ev,re,r,rp) function c33823832.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c33823832.cacon(e,tp,eg,ep,ev,re,r,rp) function c33823832.cacon(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
......
...@@ -85,10 +85,7 @@ end ...@@ -85,10 +85,7 @@ end
function c3405259.spop(e,tp,eg,ep,ev,re,r,rp) function c3405259.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c3405259.repval(e,re,r,rp) function c3405259.repval(e,re,r,rp)
return bit.band(r,REASON_BATTLE)~=0 or bit.band(r,REASON_EFFECT)~=0 return bit.band(r,REASON_BATTLE)~=0 or bit.band(r,REASON_EFFECT)~=0
......
...@@ -50,9 +50,6 @@ function c3422200.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,9 +50,6 @@ function c3422200.spop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
end end
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 and c:IsLocation(LOCATION_HAND)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c3422200.spcon2(e,tp,eg,ep,ev,re,r,rp) function c3422200.spcon2(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -100,8 +100,5 @@ function c3429238.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -100,8 +100,5 @@ function c3429238.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
...@@ -59,8 +59,5 @@ function c35073065.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,8 +59,5 @@ function c35073065.spop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
...@@ -52,9 +52,8 @@ function c35191415.target1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -52,9 +52,8 @@ function c35191415.target1(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c35191415.operation1(e,tp,eg,ep,ev,re,r,rp) function c35191415.operation1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 if c:IsRelateToEffect(e) then
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c35191415.condition2(e,tp,eg,ep,ev,re,r,rp) function c35191415.condition2(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -44,10 +44,7 @@ end ...@@ -44,10 +44,7 @@ end
function c35494087.spop(e,tp,eg,ep,ev,re,r,rp) function c35494087.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c35494087.indval(e,c) function c35494087.indval(e,c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_NORMAL)~=0 return bit.band(c:GetSummonType(),SUMMON_TYPE_NORMAL)~=0
......
...@@ -40,8 +40,5 @@ function c35537251.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,8 +40,5 @@ function c35537251.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(sg,REASON_EFFECT) Duel.SendtoGrave(sg,REASON_EFFECT)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -51,10 +51,7 @@ end ...@@ -51,10 +51,7 @@ end
function c36553319.ssop(e,tp,eg,ep,ev,re,r,rp) function c36553319.ssop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c36553319.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c36553319.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsAbleToRemove() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsAbleToRemove() end
......
...@@ -41,10 +41,7 @@ end ...@@ -41,10 +41,7 @@ end
function c36704180.operation(e,tp,eg,ep,ev,re,r,rp) function c36704180.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c36704180.drcfilter(c) function c36704180.drcfilter(c)
return (c:IsSetCard(0x10db) or (c:IsSetCard(0xdb) and c:IsType(TYPE_SPELL+TYPE_TRAP))) and c:IsAbleToGraveAsCost() return (c:IsSetCard(0x10db) or (c:IsSetCard(0xdb) and c:IsType(TYPE_SPELL+TYPE_TRAP))) and c:IsAbleToGraveAsCost()
......
...@@ -62,9 +62,6 @@ function c37115575.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,9 +62,6 @@ function c37115575.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,true,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,true,true,POS_FACEUP)~=0 then
c:CompleteProcedure() c:CompleteProcedure()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,true,true) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c37115575.descon(e) function c37115575.descon(e)
......
...@@ -49,10 +49,7 @@ end ...@@ -49,10 +49,7 @@ end
function c37781520.spop(e,tp,eg,ep,ev,re,r,rp) function c37781520.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c37781520.thcon(e,tp,eg,ep,ev,re,r,rp) function c37781520.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1 return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
......
...@@ -26,8 +26,5 @@ end ...@@ -26,8 +26,5 @@ end
function c39439590.spop(e,tp,eg,ep,ev,re,r,rp) function c39439590.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -86,10 +86,7 @@ end ...@@ -86,10 +86,7 @@ end
function c39890958.spop(e,tp,eg,ep,ev,re,r,rp) function c39890958.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c39890958.repval(e,re,r,rp) function c39890958.repval(e,re,r,rp)
return bit.band(r,REASON_BATTLE)~=0 or bit.band(r,REASON_EFFECT)~=0 return bit.band(r,REASON_BATTLE)~=0 or bit.band(r,REASON_EFFECT)~=0
......
...@@ -74,8 +74,5 @@ end ...@@ -74,8 +74,5 @@ end
function c40028305.spop(e,tp,eg,ep,ev,re,r,rp) function c40028305.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -45,9 +45,6 @@ function c40159926.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,9 +45,6 @@ function c40159926.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x47e0000) e1:SetReset(RESET_EVENT+0x47e0000)
e1:SetValue(LOCATION_REMOVED) e1:SetValue(LOCATION_REMOVED)
c:RegisterEffect(e1,true) c:RegisterEffect(e1,true)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c40159926.lvfilter(c) function c40159926.lvfilter(c)
......
...@@ -40,10 +40,7 @@ function c41091257.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,10 +40,7 @@ function c41091257.spop(e,tp,eg,ep,ev,re,r,rp)
local opt=e:GetLabel() local opt=e:GetLabel()
if (opt==0 and tc:IsType(TYPE_MONSTER)) or (opt==1 and tc:IsType(TYPE_SPELL)) or (opt==2 and tc:IsType(TYPE_TRAP)) then if (opt==0 and tc:IsType(TYPE_MONSTER)) or (opt==1 and tc:IsType(TYPE_SPELL)) or (opt==2 and tc:IsType(TYPE_TRAP)) then
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
end end
function c41091257.descon(e,tp,eg,ep,ev,re,r,rp) function c41091257.descon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -51,10 +51,7 @@ end ...@@ -51,10 +51,7 @@ end
function c41329458.spop(e,tp,eg,ep,ev,re,r,rp) function c41329458.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c41329458.cfilter(c) function c41329458.cfilter(c)
return c:IsSetCard(0x101b) and c:IsType(TYPE_MONSTER) and c:IsDiscardable() return c:IsSetCard(0x101b) and c:IsType(TYPE_MONSTER) and c:IsDiscardable()
......
...@@ -50,8 +50,5 @@ end ...@@ -50,8 +50,5 @@ end
function c42216237.spop(e,tp,eg,ep,ev,re,r,rp) function c42216237.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -59,11 +59,7 @@ end ...@@ -59,11 +59,7 @@ end
function c42713844.spop(e,tp,eg,ep,ev,re,r,rp) function c42713844.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE)==0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c42713844.postg(e,tp,eg,ep,ev,re,r,rp,chk) function c42713844.postg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -78,10 +78,7 @@ end ...@@ -78,10 +78,7 @@ end
function c42940404.spop(e,tp,eg,ep,ev,re,r,rp) function c42940404.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c42940404.sfilter(c) function c42940404.sfilter(c)
return c:IsSetCard(0x36) and c:GetCode()~=42940404 and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x36) and c:GetCode()~=42940404 and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
......
...@@ -84,9 +84,6 @@ function c43722862.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,9 +84,6 @@ function c43722862.spop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
end end
end end
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c43722862.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function c43722862.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -53,9 +53,6 @@ function c44330098.sumop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,9 +53,6 @@ function c44330098.sumop(e,tp,eg,ep,ev,re,r,rp)
if bit.band(r,REASON_BATTLE)~=0 then sumtype=2 end if bit.band(r,REASON_BATTLE)~=0 then sumtype=2 end
if Duel.SpecialSummon(c,sumtype,tp,tp,false,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,sumtype,tp,tp,false,false,POS_FACEUP)~=0 then
e:SetLabel(ev) e:SetLabel(ev)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c44330098.sumcon2(e,tp,eg,ep,ev,re,r,rp) function c44330098.sumcon2(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -33,8 +33,5 @@ function c45313993.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,8 +33,5 @@ function c45313993.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1,true) c:RegisterEffect(e1,true)
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
...@@ -70,9 +70,6 @@ function c4545683.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,9 +70,6 @@ function c4545683.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then
c:CompleteProcedure() c:CompleteProcedure()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c4545683.val(e,c) function c4545683.val(e,c)
...@@ -132,7 +129,7 @@ function c4545683.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -132,7 +129,7 @@ function c4545683.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local g=Duel.SelectTarget(tp,c4545683.spfilter,tp,LOCATION_SZONE,0,1,1,nil,e,tp,e:GetHandler()) local g=Duel.SelectTarget(tp,c4545683.spfilter,tp,LOCATION_SZONE,0,1,1,nil,e,tp,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end end
function c4545683.spop2(e,tp,eg,ep,ev,re,r,rp,chk) function c4545683.spop2(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
......
...@@ -50,10 +50,7 @@ end ...@@ -50,10 +50,7 @@ end
function c45593826.ssop(e,tp,eg,ep,ev,re,r,rp) function c45593826.ssop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c45593826.dttg(e,tp,eg,ep,ev,re,r,rp,chk) function c45593826.dttg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,1,nil,0xb1) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,1,nil,0xb1) end
......
...@@ -50,9 +50,6 @@ function c46502744.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,9 +50,6 @@ function c46502744.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.SpecialSummonStep(c,0,tp,tp,false,false,POS_FACEUP)~=0 then if Duel.SpecialSummonStep(c,0,tp,tp,false,false,POS_FACEUP)~=0 then
c:RegisterFlagEffect(46502745,RESET_EVENT+0xfe0000,0,1) c:RegisterFlagEffect(46502745,RESET_EVENT+0xfe0000,0,1)
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c46502744.remcon(e) function c46502744.remcon(e)
......
...@@ -43,18 +43,14 @@ function c46589034.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,18 +43,14 @@ function c46589034.spop(e,tp,eg,ep,ev,re,r,rp)
local def=tc:GetDefense() local def=tc:GetDefense()
local val=math.min(atk,def) local val=math.min(atk,def)
if Duel.Damage(tp,val,REASON_EFFECT)~=0 and c:IsRelateToEffect(e) then if Duel.Damage(tp,val,REASON_EFFECT)~=0 and c:IsRelateToEffect(e) then
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then if Duel.SpecialSummonStep(c,0,tp,tp,false,false,POS_FACEUP) then
if Duel.SpecialSummonStep(c,0,tp,tp,false,false,POS_FACEUP) then local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CHANGE_LEVEL)
e1:SetCode(EFFECT_CHANGE_LEVEL) e1:SetValue(tc:GetLevel())
e1:SetValue(tc:GetLevel()) e1:SetReset(RESET_EVENT+0x1ff0000)
e1:SetReset(RESET_EVENT+0x1ff0000) c:RegisterEffect(e1)
c:RegisterEffect(e1) Duel.SpecialSummonComplete()
Duel.SpecialSummonComplete()
end
elseif c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
end end
......
...@@ -36,10 +36,7 @@ end ...@@ -36,10 +36,7 @@ end
function c46659709.spop(e,tp,eg,ep,ev,re,r,rp) function c46659709.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c46659709.filter(c) function c46659709.filter(c)
return c:IsSetCard(0x7b) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x7b) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
......
...@@ -33,8 +33,5 @@ end ...@@ -33,8 +33,5 @@ end
function c46668237.operation(e,tp,eg,ep,ev,re,r,rp) function c46668237.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -84,10 +84,7 @@ end ...@@ -84,10 +84,7 @@ end
function c47228077.spop(e,tp,eg,ep,ev,re,r,rp) function c47228077.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c47228077.descon(e,tp,eg,ep,ev,re,r,rp) function c47228077.descon(e,tp,eg,ep,ev,re,r,rp)
return aux.IsUnionState(e) and e:GetHandler():GetEquipTarget()==eg:GetFirst() return aux.IsUnionState(e) and e:GetHandler():GetEquipTarget()==eg:GetFirst()
......
...@@ -91,8 +91,5 @@ end ...@@ -91,8 +91,5 @@ end
function c47415292.spop(e,tp,eg,ep,ev,re,r,rp) function c47415292.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -101,10 +101,7 @@ end ...@@ -101,10 +101,7 @@ end
function c47693640.spop(e,tp,eg,ep,ev,re,r,rp) function c47693640.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c47693640.hdcon(e,tp,eg,ep,ev,re,r,rp) function c47693640.hdcon(e,tp,eg,ep,ev,re,r,rp)
return aux.IsUnionState(e) and eg:GetFirst()==e:GetHandler():GetEquipTarget() return aux.IsUnionState(e) and eg:GetFirst()==e:GetHandler():GetEquipTarget()
......
...@@ -51,10 +51,7 @@ end ...@@ -51,10 +51,7 @@ end
function c47728740.ssop(e,tp,eg,ep,ev,re,r,rp) function c47728740.ssop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c47728740.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c47728740.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsFaceup() and chkc:IsLocation(LOCATION_MZONE) end if chkc then return chkc:IsFaceup() and chkc:IsLocation(LOCATION_MZONE) end
......
...@@ -34,13 +34,10 @@ function c47826112.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -34,13 +34,10 @@ function c47826112.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c47826112.spop(e,tp,eg,ep,ev,re,r,rp,c) function c47826112.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c47826112.thcon(e,tp,eg,ep,ev,re,r,rp) function c47826112.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1 return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
...@@ -53,7 +50,7 @@ function c47826112.thtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -53,7 +50,7 @@ function c47826112.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(c47826112.thfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) local g=Duel.GetMatchingGroup(c47826112.thfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,g:GetCount(),0,0)
end end
function c47826112.thop(e,tp,eg,ep,ev,re,r,rp,c) function c47826112.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c47826112.thfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) local g=Duel.GetMatchingGroup(c47826112.thfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
local ct=g:FilterCount(Card.IsLocation,nil,LOCATION_HAND) local ct=g:FilterCount(Card.IsLocation,nil,LOCATION_HAND)
......
...@@ -40,10 +40,7 @@ end ...@@ -40,10 +40,7 @@ end
function c47863787.spop(e,tp,eg,ep,ev,re,r,rp) function c47863787.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c47863787.cfilter(c,tp) function c47863787.cfilter(c,tp)
return c:IsControler(tp) and c:IsSetCard(0x97) and c:IsReason(REASON_DESTROY) return c:IsControler(tp) and c:IsSetCard(0x97) and c:IsReason(REASON_DESTROY)
......
...@@ -81,10 +81,7 @@ end ...@@ -81,10 +81,7 @@ end
function c48568432.spop(e,tp,eg,ep,ev,re,r,rp) function c48568432.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c48568432.spcon2(e,tp,eg,ep,ev,re,r,rp) function c48568432.spcon2(e,tp,eg,ep,ev,re,r,rp)
return aux.IsUnionState(e) and eg:GetFirst()==e:GetHandler():GetEquipTarget() return aux.IsUnionState(e) and eg:GetFirst()==e:GetHandler():GetEquipTarget()
......
...@@ -34,10 +34,7 @@ end ...@@ -34,10 +34,7 @@ end
function c49460512.spop(e,tp,eg,ep,ev,re,r,rp) function c49460512.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c49460512.limitcon(e,tp,eg,ep,ev,re,r,rp) function c49460512.limitcon(e,tp,eg,ep,ev,re,r,rp)
return r==REASON_SYNCHRO return r==REASON_SYNCHRO
......
...@@ -27,8 +27,5 @@ function c50702124.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -27,8 +27,5 @@ function c50702124.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then
c:CompleteProcedure() c:CompleteProcedure()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
...@@ -98,8 +98,5 @@ end ...@@ -98,8 +98,5 @@ end
function c51447164.spop(e,tp,eg,ep,ev,re,r,rp) function c51447164.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -49,7 +49,7 @@ function c52575195.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,7 +49,7 @@ function c52575195.tgop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsControler(tp) and Duel.Remove(tc,tc:GetPosition(),REASON_EFFECT+REASON_TEMPORARY)~=0 then if tc:IsRelateToEffect(e) and tc:IsControler(tp) and Duel.Remove(tc,tc:GetPosition(),REASON_EFFECT+REASON_TEMPORARY)~=0 then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY) e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetRange(LOCATION_REMOVED) e1:SetRange(LOCATION_REMOVED)
...@@ -67,12 +67,8 @@ function c52575195.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,12 +67,8 @@ function c52575195.tgop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCondition(c52575195.retcon) e1:SetCondition(c52575195.retcon)
e1:SetOperation(c52575195.retop) e1:SetOperation(c52575195.retop)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
end end
function c52575195.retcon(e,tp,eg,ep,ev,re,r,rp) function c52575195.retcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -35,10 +35,7 @@ end ...@@ -35,10 +35,7 @@ end
function c53090623.operation(e,tp,eg,ep,ev,re,r,rp) function c53090623.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c53090623.rdcost(e,tp,eg,ep,ev,re,r,rp,chk) function c53090623.rdcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckRemoveOverlayCard(tp,1,0,1,REASON_COST) end if chk==0 then return Duel.CheckRemoveOverlayCard(tp,1,0,1,REASON_COST) end
......
...@@ -62,9 +62,6 @@ function c53485634.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,9 +62,6 @@ function c53485634.spop(e,tp,eg,ep,ev,re,r,rp)
tc=g:GetNext() tc=g:GetNext()
end end
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c53485634.sumcon(e,tp,eg,ep,ev,re,r,rp) function c53485634.sumcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -49,10 +49,7 @@ end ...@@ -49,10 +49,7 @@ end
function c53678698.spop(e,tp,eg,ep,ev,re,r,rp) function c53678698.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c53678698.thcon(e,tp,eg,ep,ev,re,r,rp) function c53678698.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(53678698)>0 return e:GetHandler():GetFlagEffect(53678698)>0
......
...@@ -64,10 +64,7 @@ end ...@@ -64,10 +64,7 @@ end
function c53804307.hspop(e,tp,eg,ep,ev,re,r,rp) function c53804307.hspop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c53804307.retcon(e,tp,eg,ep,ev,re,r,rp) function c53804307.retcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp return Duel.GetTurnPlayer()~=tp
......
...@@ -48,10 +48,7 @@ end ...@@ -48,10 +48,7 @@ end
function c53819028.spop(e,tp,eg,ep,ev,re,r,rp) function c53819028.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c53819028.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c53819028.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=Duel.GetAttacker() local tc=Duel.GetAttacker()
......
...@@ -36,10 +36,7 @@ end ...@@ -36,10 +36,7 @@ end
function c53855409.spop(e,tp,eg,ep,ev,re,r,rp) function c53855409.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c53855409.tcon(e,tp,eg,ep,ev,re,r,rp) function c53855409.tcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_GRAVE) and r==REASON_SYNCHRO return e:GetHandler():IsLocation(LOCATION_GRAVE) and r==REASON_SYNCHRO
......
...@@ -33,9 +33,8 @@ function c54135423.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -33,9 +33,8 @@ function c54135423.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c54135423.spop(e,tp,eg,ep,ev,re,r,rp) function c54135423.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 if c:IsRelateToEffect(e) then
and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
Duel.SendtoGrave(c,REASON_RULE)
end end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
......
...@@ -40,10 +40,7 @@ end ...@@ -40,10 +40,7 @@ end
function c54149433.spop(e,tp,eg,ep,ev,re,r,rp) function c54149433.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c54149433.spcon2(e,tp,eg,ep,ev,re,r,rp) function c54149433.spcon2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -28,8 +28,5 @@ end ...@@ -28,8 +28,5 @@ end
function c54161401.spop(e,tp,eg,ep,ev,re,r,rp) function c54161401.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -74,9 +74,6 @@ function c54512827.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,9 +74,6 @@ function c54512827.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)~=0 then if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)~=0 then
Duel.ConfirmCards(1-tp,c) Duel.ConfirmCards(1-tp,c)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
end end
...@@ -34,8 +34,5 @@ function c54582424.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -34,8 +34,5 @@ function c54582424.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then
c:CompleteProcedure() c:CompleteProcedure()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
...@@ -32,10 +32,7 @@ end ...@@ -32,10 +32,7 @@ end
function c54635862.operation(e,tp,eg,ep,ev,re,r,rp) function c54635862.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c54635862.atlimit(e,c) function c54635862.atlimit(e,c)
return c~=e:GetHandler() return c~=e:GetHandler()
......
...@@ -30,11 +30,8 @@ function c54813225.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,11 +30,8 @@ function c54813225.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c54813225.spop(e,tp,eg,ep,ev,re,r,rp,c) function c54813225.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -47,9 +47,6 @@ function c5489987.drop(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,9 +47,6 @@ function c5489987.drop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) then
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then
c:CompleteProcedure() c:CompleteProcedure()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
else else
......
...@@ -45,9 +45,6 @@ function c54941203.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,9 +45,6 @@ function c54941203.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x47e0000) e1:SetReset(RESET_EVENT+0x47e0000)
e1:SetValue(LOCATION_REMOVED) e1:SetValue(LOCATION_REMOVED)
c:RegisterEffect(e1,true) c:RegisterEffect(e1,true)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c54941203.rectg(e,tp,eg,ep,ev,re,r,rp,chk) function c54941203.rectg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -39,10 +39,7 @@ function c55277252.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,10 +39,7 @@ function c55277252.op(e,tp,eg,ep,ev,re,r,rp)
end end
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c55277252.con2(e,tp,eg,ep,ev,re,r,rp) function c55277252.con2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1 return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
......
...@@ -60,10 +60,7 @@ end ...@@ -60,10 +60,7 @@ end
function c56619314.spop(e,tp,eg,ep,ev,re,r,rp) function c56619314.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c56619314.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c56619314.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
......
...@@ -82,8 +82,5 @@ end ...@@ -82,8 +82,5 @@ end
function c57062206.spop(e,tp,eg,ep,ev,re,r,rp) function c57062206.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -51,10 +51,7 @@ end ...@@ -51,10 +51,7 @@ end
function c57143342.ssop(e,tp,eg,ep,ev,re,r,rp) function c57143342.ssop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c57143342.spfilter(c,e,tp) function c57143342.spfilter(c,e,tp)
return c:IsSetCard(0xb1) and not c:IsCode(57143342) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xb1) and not c:IsCode(57143342) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -28,8 +28,5 @@ end ...@@ -28,8 +28,5 @@ end
function c5763020.spop(e,tp,eg,ep,ev,re,r,rp) function c5763020.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -47,10 +47,7 @@ function c58786132.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,10 +47,7 @@ function c58786132.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetTarget(c58786132.splimit) e1:SetTarget(c58786132.splimit)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c58786132.splimit(e,c,sump,sumtype,sumpos,targetp,se) function c58786132.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsLocation(LOCATION_EXTRA) return c:IsLocation(LOCATION_EXTRA)
......
...@@ -55,10 +55,7 @@ end ...@@ -55,10 +55,7 @@ end
function c5929801.spop(e,tp,eg,ep,ev,re,r,rp) function c5929801.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c5929801.thfilter(c) function c5929801.thfilter(c)
return c:IsCode(5929801) and c:IsAbleToHand() return c:IsCode(5929801) and c:IsAbleToHand()
......
...@@ -88,10 +88,7 @@ end ...@@ -88,10 +88,7 @@ end
function c59364406.spop(e,tp,eg,ep,ev,re,r,rp) function c59364406.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c59364406.descon(e,tp,eg,ep,ev,re,r,rp) function c59364406.descon(e,tp,eg,ep,ev,re,r,rp)
return aux.IsUnionState(e) and ep~=tp and eg:GetFirst()==e:GetHandler():GetEquipTarget() return aux.IsUnionState(e) and ep~=tp and eg:GetFirst()==e:GetHandler():GetEquipTarget()
......
...@@ -42,9 +42,6 @@ function c59546797.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,9 +42,6 @@ function c59546797.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then
Duel.Recover(tp,1000,REASON_EFFECT) Duel.Recover(tp,1000,REASON_EFFECT)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c59546797.atkcon(e,tp,eg,ep,ev,re,r,rp) function c59546797.atkcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -19,8 +19,5 @@ end ...@@ -19,8 +19,5 @@ end
function c59755122.spop(e,tp,eg,ep,ev,re,r,rp) function c59755122.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -57,10 +57,7 @@ function c59785059.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,10 +57,7 @@ function c59785059.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.Destroy(g,REASON_EFFECT)~=0 then if Duel.Destroy(g,REASON_EFFECT)~=0 then
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
end end
function c59785059.thfilter(c) function c59785059.thfilter(c)
......
...@@ -42,10 +42,7 @@ function c59808784.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,10 +42,7 @@ function c59808784.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetTarget(c59808784.splimit) e1:SetTarget(c59808784.splimit)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c59808784.splimit(e,c,sump,sumtype,sumpos,targetp,se) function c59808784.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsLocation(LOCATION_EXTRA) return c:IsLocation(LOCATION_EXTRA)
......
...@@ -66,9 +66,6 @@ function c60417395.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,9 +66,6 @@ function c60417395.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then
c:CompleteProcedure() c:CompleteProcedure()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c60417395.filter(c) function c60417395.filter(c)
......
...@@ -63,9 +63,6 @@ function c61318483.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,9 +63,6 @@ function c61318483.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)~=0 then if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)~=0 then
Duel.ConfirmCards(1-tp,c) Duel.ConfirmCards(1-tp,c)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
end end
...@@ -28,8 +28,5 @@ end ...@@ -28,8 +28,5 @@ end
function c61791132.spop(e,tp,eg,ep,ev,re,r,rp) function c61791132.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -51,10 +51,7 @@ end ...@@ -51,10 +51,7 @@ end
function c62957424.ssop(e,tp,eg,ep,ev,re,r,rp) function c62957424.ssop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c62957424.spfilter(c,e,tp) function c62957424.spfilter(c,e,tp)
return c:GetLevel()==3 and c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_FIEND) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetLevel()==3 and c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_FIEND) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -49,8 +49,5 @@ end ...@@ -49,8 +49,5 @@ end
function c63211608.sumop(e,tp,eg,ep,ev,re,r,rp) function c63211608.sumop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -90,10 +90,7 @@ end ...@@ -90,10 +90,7 @@ end
function c63676256.spop(e,tp,eg,ep,ev,re,r,rp) function c63676256.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c63676256.descon(e,tp,eg,ep,ev,re,r,rp) function c63676256.descon(e,tp,eg,ep,ev,re,r,rp)
return aux.IsUnionState(e) and eg:GetCount()==1 and eg:GetFirst()==e:GetHandler():GetEquipTarget() return aux.IsUnionState(e) and eg:GetCount()==1 and eg:GetFirst()==e:GetHandler():GetEquipTarget()
......
...@@ -26,22 +26,18 @@ function c64034255.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,22 +26,18 @@ function c64034255.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c64034255.spop(e,tp,eg,ep,ev,re,r,rp,c) function c64034255.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) or not c:IsCanBeSpecialSummoned(e,0,tp,false,false) then return end if not c:IsRelateToEffect(e) then return end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
Duel.SendtoGrave(c,REASON_RULE)
return
end
if e:GetLabel()==1 then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetReset(RESET_EVENT+0xff0000)
e1:SetValue(500)
c:RegisterEffect(e1)
end
if Duel.SpecialSummonStep(c,0,tp,tp,false,false,POS_FACEUP) then if Duel.SpecialSummonStep(c,0,tp,tp,false,false,POS_FACEUP) then
if e:GetLabel()==1 then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(500)
e1:SetReset(RESET_EVENT+0x1ff0000)
c:RegisterEffect(e1)
end
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_LEAVE_FIELD_REDIRECT) e2:SetCode(EFFECT_LEAVE_FIELD_REDIRECT)
...@@ -49,6 +45,6 @@ function c64034255.spop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -49,6 +45,6 @@ function c64034255.spop(e,tp,eg,ep,ev,re,r,rp,c)
e2:SetReset(RESET_EVENT+0x47e0000) e2:SetReset(RESET_EVENT+0x47e0000)
e2:SetValue(LOCATION_REMOVED) e2:SetValue(LOCATION_REMOVED)
c:RegisterEffect(e2,true) c:RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
end end
Duel.SpecialSummonComplete()
end end
...@@ -35,8 +35,5 @@ end ...@@ -35,8 +35,5 @@ end
function c64262809.spop(e,tp,eg,ep,ev,re,r,rp) function c64262809.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -23,8 +23,5 @@ end ...@@ -23,8 +23,5 @@ end
function c64379261.spop(e,tp,eg,ep,ev,re,r,rp) function c64379261.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -35,10 +35,7 @@ end ...@@ -35,10 +35,7 @@ end
function c64450427.spop(e,tp,eg,ep,ev,re,r,rp) function c64450427.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c64450427.dtcon(e,c) function c64450427.dtcon(e,c)
return c:IsType(TYPE_PENDULUM) return c:IsType(TYPE_PENDULUM)
......
...@@ -85,8 +85,5 @@ end ...@@ -85,8 +85,5 @@ end
function c64500000.spop(e,tp,eg,ep,ev,re,r,rp) function c64500000.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -38,9 +38,6 @@ function c64605089.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,9 +38,6 @@ function c64605089.operation(e,tp,eg,ep,ev,re,r,rp)
and at:IsFaceup() and at:IsRelateToBattle() and at:GetAttack()<c:GetDefense() then and at:IsFaceup() and at:IsRelateToBattle() and at:GetAttack()<c:GetDefense() then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Destroy(at,REASON_EFFECT) Duel.Destroy(at,REASON_EFFECT)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c64605089.efcon(e,tp,eg,ep,ev,re,r,rp) function c64605089.efcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -38,8 +38,5 @@ end ...@@ -38,8 +38,5 @@ end
function c65303664.operation(e,tp,eg,ep,ev,re,r,rp) function c65303664.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -85,8 +85,5 @@ end ...@@ -85,8 +85,5 @@ end
function c65622692.spop(e,tp,eg,ep,ev,re,r,rp) function c65622692.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -98,10 +98,7 @@ end ...@@ -98,10 +98,7 @@ end
function c65685470.spop(e,tp,eg,ep,ev,re,r,rp) function c65685470.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c65685470.drcon(e,tp,eg,ep,ev,re,r,rp) function c65685470.drcon(e,tp,eg,ep,ev,re,r,rp)
return aux.IsUnionState(e) and e:GetHandler():GetEquipTarget()==eg:GetFirst() return aux.IsUnionState(e) and e:GetHandler():GetEquipTarget()==eg:GetFirst()
......
...@@ -63,11 +63,7 @@ end ...@@ -63,11 +63,7 @@ end
function c65976795.spop(e,tp,eg,ep,ev,re,r,rp) function c65976795.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE)==0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c65976795.postg(e,tp,eg,ep,ev,re,r,rp,chk) function c65976795.postg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -41,10 +41,7 @@ end ...@@ -41,10 +41,7 @@ end
function c66413481.spop(e,tp,eg,ep,ev,re,r,rp) function c66413481.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c66413481.descon(e,tp,eg,ep,ev,re,r,rp) function c66413481.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_DESTROY) return e:GetHandler():IsReason(REASON_DESTROY)
......
...@@ -57,8 +57,5 @@ function c66752837.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,8 +57,5 @@ function c66752837.spop(e,tp,eg,ep,ev,re,r,rp)
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg) Duel.ConfirmCards(1-tp,sg)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
...@@ -87,10 +87,7 @@ end ...@@ -87,10 +87,7 @@ end
function c67159705.spop(e,tp,eg,ep,ev,re,r,rp) function c67159705.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c67159705.desfilter(c) function c67159705.desfilter(c)
return c:IsFaceup() return c:IsFaceup()
......
...@@ -29,8 +29,5 @@ end ...@@ -29,8 +29,5 @@ end
function c67757079.spop(e,tp,eg,ep,ev,re,r,rp) function c67757079.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -40,10 +40,7 @@ end ...@@ -40,10 +40,7 @@ end
function c68120130.spop(e,tp,eg,ep,ev,re,r,rp) function c68120130.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c68120130.defcon(e,tp,eg,ep,ev,re,r,rp) function c68120130.defcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated() return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()
......
...@@ -69,9 +69,6 @@ function c68140974.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,9 +69,6 @@ function c68140974.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then
c:CompleteProcedure() c:CompleteProcedure()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c68140974.antarget(e,c) function c68140974.antarget(e,c)
......
...@@ -69,10 +69,7 @@ end ...@@ -69,10 +69,7 @@ end
function c68406755.spop(e,tp,eg,ep,ev,re,r,rp) function c68406755.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c68406755.cfilter(c) function c68406755.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0xe2) return c:IsFaceup() and c:IsSetCard(0xe2)
......
...@@ -76,8 +76,5 @@ end ...@@ -76,8 +76,5 @@ end
function c69304426.hspop(e,tp,eg,ep,ev,re,r,rp) function c69304426.hspop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -88,8 +88,5 @@ end ...@@ -88,8 +88,5 @@ end
function c69456283.spop(e,tp,eg,ep,ev,re,r,rp) function c69456283.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -50,10 +50,7 @@ end ...@@ -50,10 +50,7 @@ end
function c69838592.spop(e,tp,eg,ep,ev,re,r,rp) function c69838592.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c69838592.filter(c,tc) function c69838592.filter(c,tc)
if not c:IsFaceup() then return false end if not c:IsFaceup() then return false end
......
...@@ -36,10 +36,7 @@ end ...@@ -36,10 +36,7 @@ end
function c70117860.spop(e,tp,eg,ep,ev,re,r,rp) function c70117860.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c70117860.efcon(e,tp,eg,ep,ev,re,r,rp) function c70117860.efcon(e,tp,eg,ep,ev,re,r,rp)
return r==REASON_SYNCHRO and e:GetHandler():GetReasonCard():IsAttribute(ATTRIBUTE_WIND) return r==REASON_SYNCHRO and e:GetHandler():GetReasonCard():IsAttribute(ATTRIBUTE_WIND)
......
...@@ -50,9 +50,6 @@ function c70939418.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,9 +50,6 @@ function c70939418.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then
c:RegisterFlagEffect(70939418,RESET_EVENT+0x1ec0000+RESET_PHASE+PHASE_BATTLE,0,1) c:RegisterFlagEffect(70939418,RESET_EVENT+0x1ec0000+RESET_PHASE+PHASE_BATTLE,0,1)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c70939418.sccon(e,tp,eg,ep,ev,re,r,rp) function c70939418.sccon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -49,10 +49,7 @@ end ...@@ -49,10 +49,7 @@ end
function c71703785.spop1(e,tp,eg,ep,ev,re,r,rp) function c71703785.spop1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c71703785.atkcon(e) function c71703785.atkcon(e)
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
......
...@@ -68,10 +68,7 @@ end ...@@ -68,10 +68,7 @@ end
function c72181263.spop(e,tp,eg,ep,ev,re,r,rp) function c72181263.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c72181263.regop(e,tp,eg,ep,ev,re,r,rp) function c72181263.regop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
...@@ -40,9 +40,6 @@ function c7268133.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,9 +40,6 @@ function c7268133.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x1ff0000) e1:SetReset(RESET_EVENT+0x1ff0000)
c:RegisterEffect(e1) c:RegisterEffect(e1)
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c7268133.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) function c7268133.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -51,10 +51,7 @@ end ...@@ -51,10 +51,7 @@ end
function c73213494.ssop(e,tp,eg,ep,ev,re,r,rp) function c73213494.ssop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c73213494.thfilter(c) function c73213494.thfilter(c)
return c:IsFacedown() and c:IsAbleToHand() return c:IsFacedown() and c:IsAbleToHand()
......
...@@ -51,8 +51,5 @@ end ...@@ -51,8 +51,5 @@ end
function c734741.ssop(e,tp,eg,ep,ev,re,r,rp) function c734741.ssop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -79,10 +79,7 @@ end ...@@ -79,10 +79,7 @@ end
function c7369217.spop(e,tp,eg,ep,ev,re,r,rp) function c7369217.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c7369217.efilter(e,te) function c7369217.efilter(e,te)
return te:GetOwnerPlayer()~=e:GetHandlerPlayer() and te:IsActiveType(TYPE_SPELL) return te:GetOwnerPlayer()~=e:GetHandlerPlayer() and te:IsActiveType(TYPE_SPELL)
......
...@@ -41,10 +41,7 @@ function c74298287.spop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,10 +41,7 @@ function c74298287.spop1(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsExistingMatchingCard(c74298287.cfilter,tp,LOCATION_MZONE,0,1,nil) then return end if not Duel.IsExistingMatchingCard(c74298287.cfilter,tp,LOCATION_MZONE,0,1,nil) then return end
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c74298287.spcon2(e,tp,eg,ep,ev,re,r,rp) function c74298287.spcon2(e,tp,eg,ep,ev,re,r,rp)
return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsSetCard(0x74) return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsSetCard(0x74)
......
...@@ -47,10 +47,7 @@ end ...@@ -47,10 +47,7 @@ end
function c75180828.spop(e,tp,eg,ep,ev,re,r,rp) function c75180828.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c75180828.descon(e,tp,eg,ep,ev,re,r,rp) function c75180828.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1 return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
......
...@@ -44,9 +44,6 @@ function c7563579.spop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,9 +44,6 @@ function c7563579.spop1(e,tp,eg,ep,ev,re,r,rp)
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Damage(tp,500,REASON_EFFECT) Duel.Damage(tp,500,REASON_EFFECT)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c7563579.spcon2(e,tp,eg,ep,ev,re,r,rp) function c7563579.spcon2(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -72,10 +72,7 @@ end ...@@ -72,10 +72,7 @@ end
function c76218313.spop(e,tp,eg,ep,ev,re,r,rp) function c76218313.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c76218313.effcon(e) function c76218313.effcon(e)
return e:GetHandler():GetEquipTarget() return e:GetHandler():GetEquipTarget()
......
...@@ -52,8 +52,5 @@ function c7634581.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,8 +52,5 @@ function c7634581.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then
c:CompleteProcedure() c:CompleteProcedure()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
...@@ -116,8 +116,6 @@ function c76794549.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -116,8 +116,6 @@ function c76794549.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg) Duel.ConfirmCards(1-tp,sg)
end end
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c76794549.cfilter(c) function c76794549.cfilter(c)
......
...@@ -85,10 +85,7 @@ end ...@@ -85,10 +85,7 @@ end
function c77411244.spop(e,tp,eg,ep,ev,re,r,rp) function c77411244.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c77411244.repval(e,re,r,rp) function c77411244.repval(e,re,r,rp)
return bit.band(r,REASON_BATTLE)~=0 or bit.band(r,REASON_EFFECT)~=0 return bit.band(r,REASON_BATTLE)~=0 or bit.band(r,REASON_EFFECT)~=0
......
...@@ -60,11 +60,7 @@ end ...@@ -60,11 +60,7 @@ end
function c78202553.spop(e,tp,eg,ep,ev,re,r,rp) function c78202553.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE)==0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c78202553.postg(e,tp,eg,ep,ev,re,r,rp,chk) function c78202553.postg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -80,10 +80,7 @@ end ...@@ -80,10 +80,7 @@ end
function c78349103.spop(e,tp,eg,ep,ev,re,r,rp) function c78349103.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c78349103.sfilter(c) function c78349103.sfilter(c)
return c:IsType(TYPE_UNION) and c:IsAbleToHand() return c:IsType(TYPE_UNION) and c:IsAbleToHand()
......
...@@ -87,10 +87,7 @@ end ...@@ -87,10 +87,7 @@ end
function c79538761.spop(e,tp,eg,ep,ev,re,r,rp) function c79538761.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c79538761.repval(e,re,r,rp) function c79538761.repval(e,re,r,rp)
return bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0 return bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0
......
...@@ -31,9 +31,8 @@ function c80630522.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -31,9 +31,8 @@ function c80630522.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c80630522.spop(e,tp,eg,ep,ev,re,r,rp) function c80630522.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 if c:IsRelateToEffect(e) then
and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
Duel.SendtoGrave(c,REASON_RULE)
end end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
......
...@@ -30,8 +30,5 @@ end ...@@ -30,8 +30,5 @@ end
function c81336148.spop(e,tp,eg,ep,ev,re,r,rp) function c81336148.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -66,8 +66,5 @@ function c81907872.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,8 +66,5 @@ function c81907872.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)~=0 then if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)~=0 then
Duel.ConfirmCards(1-tp,c) Duel.ConfirmCards(1-tp,c)
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
...@@ -51,10 +51,7 @@ end ...@@ -51,10 +51,7 @@ end
function c81992475.ssop(e,tp,eg,ep,ev,re,r,rp) function c81992475.ssop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c81992475.rmfilter(c) function c81992475.rmfilter(c)
return c:IsSetCard(0xb1) and not c:IsCode(81992475) and c:IsAbleToRemove() return c:IsSetCard(0xb1) and not c:IsCode(81992475) and c:IsAbleToRemove()
......
...@@ -77,9 +77,6 @@ function c82103466.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,9 +77,6 @@ function c82103466.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then
c:CompleteProcedure() c:CompleteProcedure()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c82103466.adcon(e) function c82103466.adcon(e)
......
...@@ -72,10 +72,6 @@ function c82321037.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,10 +72,6 @@ function c82321037.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.Destroy(g1,REASON_EFFECT)==2 then if Duel.Destroy(g1,REASON_EFFECT)==2 then
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 then if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 then
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
return return
end end
local rg=Duel.GetMatchingGroup(c82321037.rmfilter,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,nil) local rg=Duel.GetMatchingGroup(c82321037.rmfilter,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,nil)
......
...@@ -75,10 +75,7 @@ end ...@@ -75,10 +75,7 @@ end
function c82670878.operation(e,tp,eg,ep,ev,re,r,rp) function c82670878.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c82670878.adcon(e,tp,eg,ep,ev,re,r,rp) function c82670878.adcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1 return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
......
...@@ -37,10 +37,7 @@ end ...@@ -37,10 +37,7 @@ end
function c8284390.spop(e,tp,eg,ep,ev,re,r,rp) function c8284390.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) then
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
......
...@@ -43,10 +43,7 @@ end ...@@ -43,10 +43,7 @@ end
function c83303851.spop(e,tp,eg,ep,ev,re,r,rp) function c83303851.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c83303851.descon(e,tp,eg,ep,ev,re,r,rp) function c83303851.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp return Duel.GetTurnPlayer()~=tp
...@@ -91,10 +88,7 @@ function c83303851.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -91,10 +88,7 @@ function c83303851.desop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 and Duel.Destroy(g,REASON_EFFECT)~=0 then if g:GetCount()>0 and Duel.Destroy(g,REASON_EFFECT)~=0 then
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
end end
function c83303851.splimit(e,c) function c83303851.splimit(e,c)
......
...@@ -84,10 +84,7 @@ end ...@@ -84,10 +84,7 @@ end
function c84313685.spop(e,tp,eg,ep,ev,re,r,rp) function c84313685.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c84313685.gspcon(e,tp,eg,ep,ev,re,r,rp) function c84313685.gspcon(e,tp,eg,ep,ev,re,r,rp)
return aux.IsUnionState(e) and e:GetHandler():GetEquipTarget()==eg:GetFirst() return aux.IsUnionState(e) and e:GetHandler():GetEquipTarget()==eg:GetFirst()
......
...@@ -59,10 +59,7 @@ end ...@@ -59,10 +59,7 @@ end
function c84764038.ssop(e,tp,eg,ep,ev,re,r,rp) function c84764038.ssop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c84764038.regop(e,tp,eg,ep,ev,re,r,rp) function c84764038.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -99,10 +99,7 @@ end ...@@ -99,10 +99,7 @@ end
function c84814897.spop(e,tp,eg,ep,ev,re,r,rp) function c84814897.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c84814897.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) function c84814897.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() end if chk==0 then return e:GetHandler():IsReleasable() end
......
...@@ -88,10 +88,7 @@ end ...@@ -88,10 +88,7 @@ end
function c85359414.spop(e,tp,eg,ep,ev,re,r,rp) function c85359414.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c85359414.descon(e,tp,eg,ep,ev,re,r,rp) function c85359414.descon(e,tp,eg,ep,ev,re,r,rp)
return aux.IsUnionState(e) and ep~=tp and eg:GetFirst()==e:GetHandler():GetEquipTarget() return aux.IsUnionState(e) and ep~=tp and eg:GetFirst()==e:GetHandler():GetEquipTarget()
......
...@@ -38,13 +38,10 @@ function c86585274.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -38,13 +38,10 @@ function c86585274.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c86585274.spop(e,tp,eg,ep,ev,re,r,rp,c) function c86585274.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c86585274.cfilter(c) function c86585274.cfilter(c)
return c:IsSetCard(0x106e) and c:IsType(TYPE_SPELL) and c:IsAbleToRemoveAsCost() return c:IsSetCard(0x106e) and c:IsType(TYPE_SPELL) and c:IsAbleToRemoveAsCost()
......
...@@ -36,10 +36,7 @@ end ...@@ -36,10 +36,7 @@ end
function c87255382.spop(e,tp,eg,ep,ev,re,r,rp) function c87255382.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c87255382.atkop(e,tp,eg,ep,ev,re,r,rp) function c87255382.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -86,10 +86,7 @@ end ...@@ -86,10 +86,7 @@ end
function c87564935.spop(e,tp,eg,ep,ev,re,r,rp) function c87564935.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c87564935.efilter1(e,re,rp) function c87564935.efilter1(e,re,rp)
return rp~=e:GetHandlerPlayer() and re:IsActiveType(TYPE_MONSTER) return rp~=e:GetHandlerPlayer() and re:IsActiveType(TYPE_MONSTER)
......
...@@ -24,8 +24,5 @@ end ...@@ -24,8 +24,5 @@ end
function c87774234.operation(e,tp,eg,ep,ev,re,r,rp) function c87774234.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -87,10 +87,7 @@ end ...@@ -87,10 +87,7 @@ end
function c87798440.spop(e,tp,eg,ep,ev,re,r,rp) function c87798440.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c87798440.descon(e,tp,eg,ep,ev,re,r,rp) function c87798440.descon(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and e:GetHandler():GetEquipTarget()==eg:GetFirst() and aux.IsUnionState(e) return ep~=tp and e:GetHandler():GetEquipTarget()==eg:GetFirst() and aux.IsUnionState(e)
......
...@@ -58,9 +58,6 @@ function c87997872.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,9 +58,6 @@ function c87997872.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then
c:CompleteProcedure() c:CompleteProcedure()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c87997872.atkop(e,tp,eg,ep,ev,re,r,rp) function c87997872.atkop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -28,8 +28,5 @@ end ...@@ -28,8 +28,5 @@ end
function c88358139.spop(e,tp,eg,ep,ev,re,r,rp) function c88358139.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -35,10 +35,7 @@ end ...@@ -35,10 +35,7 @@ end
function c88412339.spop(e,tp,eg,ep,ev,re,r,rp) function c88412339.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c88412339.pencost(e,tp,eg,ep,ev,re,r,rp,chk) function c88412339.pencost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() end if chk==0 then return e:GetHandler():IsReleasable() end
......
...@@ -41,10 +41,7 @@ end ...@@ -41,10 +41,7 @@ end
function c8873112.spop(e,tp,eg,ep,ev,re,r,rp) function c8873112.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsLocation(LOCATION_HAND) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c8873112.cfilter(c,tp) function c8873112.cfilter(c,tp)
return c:IsOnField() and c:IsControler(tp) and c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsOnField() and c:IsControler(tp) and c:IsType(TYPE_SPELL+TYPE_TRAP)
......
...@@ -89,8 +89,5 @@ function c88935103.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -89,8 +89,5 @@ function c88935103.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(-3) e1:SetValue(-3)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -28,8 +28,5 @@ end ...@@ -28,8 +28,5 @@ end
function c89235196.spop(e,tp,eg,ep,ev,re,r,rp) function c89235196.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -34,8 +34,5 @@ end ...@@ -34,8 +34,5 @@ end
function c89258906.operation(e,tp,eg,ep,ev,re,r,rp) function c89258906.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -63,10 +63,7 @@ end ...@@ -63,10 +63,7 @@ end
function c89399912.hspop(e,tp,eg,ep,ev,re,r,rp) function c89399912.hspop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c89399912.retcon(e,tp,eg,ep,ev,re,r,rp) function c89399912.retcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp return Duel.GetTurnPlayer()~=tp
......
...@@ -65,10 +65,7 @@ end ...@@ -65,10 +65,7 @@ end
function c90036274.spop(e,tp,eg,ep,ev,re,r,rp) function c90036274.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c90036274.discon(e,tp,eg,ep,ev,re,r,rp) function c90036274.discon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated() return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()
......
...@@ -64,10 +64,7 @@ end ...@@ -64,10 +64,7 @@ end
function c90411554.hspop(e,tp,eg,ep,ev,re,r,rp) function c90411554.hspop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c90411554.retcon(e,tp,eg,ep,ev,re,r,rp) function c90411554.retcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp return Duel.GetTurnPlayer()~=tp
......
...@@ -31,8 +31,5 @@ end ...@@ -31,8 +31,5 @@ end
function c90764875.spop(e,tp,eg,ep,ev,re,r,rp) function c90764875.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -51,9 +51,6 @@ function c92377303.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,9 +51,6 @@ function c92377303.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then
c:CompleteProcedure() c:CompleteProcedure()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c92377303.thcon(e,tp,eg,ep,ev,re,r,rp) function c92377303.thcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -30,8 +30,5 @@ end ...@@ -30,8 +30,5 @@ end
function c92821268.operation(e,tp,eg,ep,ev,re,r,rp) function c92821268.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -57,11 +57,7 @@ end ...@@ -57,11 +57,7 @@ end
function c92970404.spop(e,tp,eg,ep,ev,re,r,rp) function c92970404.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE)==0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c92970404.postg(e,tp,eg,ep,ev,re,r,rp,chk) function c92970404.postg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -43,10 +43,7 @@ end ...@@ -43,10 +43,7 @@ end
function c93085839.spop(e,tp,eg,ep,ev,re,r,rp) function c93085839.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c93085839.effcon(e,tp,eg,ep,ev,re,r,rp) function c93085839.effcon(e,tp,eg,ep,ev,re,r,rp)
return (r==REASON_XYZ or r==REASON_SYNCHRO) and e:GetHandler():GetReasonCard():IsSetCard(0x107a) return (r==REASON_XYZ or r==REASON_SYNCHRO) and e:GetHandler():GetReasonCard():IsSetCard(0x107a)
......
...@@ -86,10 +86,7 @@ end ...@@ -86,10 +86,7 @@ end
function c93108839.spop(e,tp,eg,ep,ev,re,r,rp) function c93108839.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c93108839.damcon(e,tp,eg,ep,ev,re,r,rp) function c93108839.damcon(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and eg:GetFirst()==e:GetHandler():GetEquipTarget() return ep~=tp and eg:GetFirst()==e:GetHandler():GetEquipTarget()
......
...@@ -51,10 +51,7 @@ end ...@@ -51,10 +51,7 @@ end
function c9342162.ssop(e,tp,eg,ep,ev,re,r,rp) function c9342162.ssop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c9342162.tgfilter(c) function c9342162.tgfilter(c)
return c:IsSetCard(0xb1) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToGrave() return c:IsSetCard(0xb1) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToGrave()
......
...@@ -76,9 +76,6 @@ function c93713837.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,9 +76,6 @@ function c93713837.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)~=0 then if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)~=0 then
Duel.ConfirmCards(1-tp,c) Duel.ConfirmCards(1-tp,c)
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c93713837.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c93713837.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -33,9 +33,6 @@ function c93966624.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,9 +33,6 @@ function c93966624.rmop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 and Duel.Remove(g,POS_FACEUP,REASON_EFFECT)~=0 then if g:GetCount()>0 and Duel.Remove(g,POS_FACEUP,REASON_EFFECT)~=0 then
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
end end
...@@ -71,10 +71,6 @@ function c94160895.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,10 +71,6 @@ function c94160895.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.Destroy(g1,REASON_EFFECT)==2 then if Duel.Destroy(g1,REASON_EFFECT)==2 then
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 then if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 then
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
return return
end end
local rg=Duel.GetDecktopGroup(1-tp,4) local rg=Duel.GetDecktopGroup(1-tp,4)
......
...@@ -34,8 +34,5 @@ function c94656263.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -34,8 +34,5 @@ function c94656263.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then
c:CompleteProcedure() c:CompleteProcedure()
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
...@@ -40,10 +40,7 @@ end ...@@ -40,10 +40,7 @@ end
function c95772051.spop(e,tp,eg,ep,ev,re,r,rp) function c95772051.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c95772051.thfilter(c) function c95772051.thfilter(c)
return c:IsSetCard(0x207a) and c:IsAbleToHand() return c:IsSetCard(0x207a) and c:IsAbleToHand()
......
...@@ -66,8 +66,5 @@ end ...@@ -66,8 +66,5 @@ end
function c95943058.spop(e,tp,eg,ep,ev,re,r,rp) function c95943058.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_ATTACK)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -85,8 +85,5 @@ end ...@@ -85,8 +85,5 @@ end
function c96300057.spop(e,tp,eg,ep,ev,re,r,rp) function c96300057.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -40,10 +40,7 @@ end ...@@ -40,10 +40,7 @@ end
function c96594609.spop(e,tp,eg,ep,ev,re,r,rp) function c96594609.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c96594609.tgcon(e,tp,eg,ep,ev,re,r,rp) function c96594609.tgcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_DESTROY) return e:GetHandler():IsReason(REASON_DESTROY)
......
...@@ -72,10 +72,6 @@ function c96746083.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,10 +72,6 @@ function c96746083.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.Destroy(g1,REASON_EFFECT)==2 then if Duel.Destroy(g1,REASON_EFFECT)==2 then
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 then if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 then
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
return return
end end
local rg=Duel.GetMatchingGroup(c96746083.rmfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,nil,tp) local rg=Duel.GetMatchingGroup(c96746083.rmfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,nil,tp)
......
...@@ -45,8 +45,6 @@ function c97219708.recop(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,8 +45,6 @@ function c97219708.recop(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect() Duel.BreakEffect()
Duel.Recover(tp,ct*100,REASON_EFFECT) Duel.Recover(tp,ct*100,REASON_EFFECT)
end end
elseif c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c97219708.spfilter(c,e,tp) function c97219708.spfilter(c,e,tp)
......
...@@ -237,8 +237,5 @@ end ...@@ -237,8 +237,5 @@ end
function c97489701.spop(e,tp,eg,ep,ev,re,r,rp,chk) function c97489701.spop(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -47,8 +47,5 @@ end ...@@ -47,8 +47,5 @@ end
function c97940434.spop(e,tp,eg,ep,ev,re,r,rp) function c97940434.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -26,8 +26,5 @@ end ...@@ -26,8 +26,5 @@ end
function c98437424.spop(e,tp,eg,ep,ev,re,r,rp) function c98437424.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
...@@ -64,10 +64,7 @@ end ...@@ -64,10 +64,7 @@ end
function c98777036.sumop(e,tp,eg,ep,ev,re,r,rp) function c98777036.sumop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c98777036.ctffilter(c,lv) function c98777036.ctffilter(c,lv)
return c:IsControlerCanBeChanged() and c:IsFaceup() and c:GetLevel()==lv return c:IsControlerCanBeChanged() and c:IsFaceup() and c:GetLevel()==lv
......
...@@ -42,10 +42,7 @@ end ...@@ -42,10 +42,7 @@ end
function c99177923.spop(e,tp,eg,ep,ev,re,r,rp) function c99177923.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
function c99177923.srcon(e,tp,eg,ep,ev,re,r,rp) function c99177923.srcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)==0 return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)==0
......
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