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
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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