Commit 56323a09 authored by POLYMER's avatar POLYMER

fix

parent f5b99fa5
...@@ -168,7 +168,7 @@ function c11533716.drtdtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -168,7 +168,7 @@ function c11533716.drtdtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c11533716.drtdop(e,tp,eg,ep,ev,re,r,rp) function c11533716.drtdop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c32807846.filter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c11533716.scfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 and Duel.SendtoHand(g,nil,REASON_EFFECT)~=0 then if g:GetCount()>0 and Duel.SendtoHand(g,nil,REASON_EFFECT)~=0 then
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
local dg=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,nil,e) local dg=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,nil,e)
......
...@@ -40,7 +40,7 @@ function c11533717.initial_effect(c) ...@@ -40,7 +40,7 @@ function c11533717.initial_effect(c)
e12:SetCode(EVENT_FREE_CHAIN) e12:SetCode(EVENT_FREE_CHAIN)
e12:SetRange(LOCATION_HAND+LOCATION_MZONE) e12:SetRange(LOCATION_HAND+LOCATION_MZONE)
e12:SetCountLimit(1,11533717) e12:SetCountLimit(1,11533717)
e12:SetCost(c11533717.atkcost) e12:SetCost(c11533717.sscost)
e12:SetTarget(c11533717.settg) e12:SetTarget(c11533717.settg)
e12:SetOperation(c11533717.setop) e12:SetOperation(c11533717.setop)
c:RegisterEffect(e12) c:RegisterEffect(e12)
...@@ -51,7 +51,7 @@ function c11533717.initial_effect(c) ...@@ -51,7 +51,7 @@ function c11533717.initial_effect(c)
e11:SetCode(EVENT_FREE_CHAIN) e11:SetCode(EVENT_FREE_CHAIN)
e11:SetRange(LOCATION_HAND+LOCATION_MZONE) e11:SetRange(LOCATION_HAND+LOCATION_MZONE)
e11:SetCountLimit(1,11543717) e11:SetCountLimit(1,11543717)
e11:SetCost(c11533717.atkcost) e11:SetCost(c11533717.sscost)
e11:SetTarget(c11533717.ssptg) e11:SetTarget(c11533717.ssptg)
e11:SetOperation(c11533717.sspop) e11:SetOperation(c11533717.sspop)
c:RegisterEffect(e11) c:RegisterEffect(e11)
...@@ -73,7 +73,6 @@ end ...@@ -73,7 +73,6 @@ end
function c11533717.settg(e,tp,eg,ep,ev,re,r,rp,chk) function c11533717.settg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c11533717.setfilter,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c11533717.setfilter,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) end
end end
aux.NecroValleyFilter(c79387392.setfilter)
function c11533717.setop(e,tp,eg,ep,ev,re,r,rp) function c11533717.setop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
...@@ -141,7 +140,7 @@ function c11533717.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -141,7 +140,7 @@ function c11533717.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_PHASE+Duel.GetCurrentPhase()) e1:SetReset(RESET_PHASE+Duel.GetCurrentPhase())
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c11533717.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) function c11533717.sscost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
Duel.SendtoGrave(e:GetHandler(),REASON_COST) Duel.SendtoGrave(e:GetHandler(),REASON_COST)
--immune --immune
......
...@@ -108,6 +108,7 @@ function c11561053.tktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -108,6 +108,7 @@ function c11561053.tktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c11561053.tkop(e,tp,eg,ep,ev,re,r,rp) function c11561053.tkop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
local c=e:GetHandler()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.SendtoGrave(tc,REASON_EFFECT+REASON_RETURN) Duel.SendtoGrave(tc,REASON_EFFECT+REASON_RETURN)
end end
......
...@@ -36,10 +36,10 @@ function cm.initial_effect(c) ...@@ -36,10 +36,10 @@ function cm.initial_effect(c)
end end
function c11561075.thfilter1(c) function c11561075.thfilter1(c)
return c:IsType(TYPE_MONSTER) and c:IsLevelAbove(0) and Duel.IsExistingTarget(c11561075.thfilter2,tp,0,LOCATION_GRAVE,1,nil,c) return c:IsType(TYPE_MONSTER) and Duel.IsExistingMatchingCard(c11561075.thfilter2,tp,LOCATION_DECK,0,1,nil,c)
end end
function c11561075.thfilter2(c,tc) function c11561075.thfilter2(c,tc)
return c:IsAttribute(tc:GetAttribute()) and not c:IsRace(tc:Getrace()) and c:IsAbleToHand() return c:IsAttribute(tc:GetAttribute()) and not c:IsRace(tc:GetRace()) and c:IsAbleToHand()
end end
function c11561075.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c11561075.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(1-tp) and c11561075.thfilter1(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(1-tp) and c11561075.thfilter1(chkc) end
......
...@@ -32,10 +32,13 @@ function cm.initial_effect(c) ...@@ -32,10 +32,13 @@ function cm.initial_effect(c)
end end
function c11561076.costfilter(c,tp,g) function c11561076.costfilter(c,tp,g)
return c:IsSetCard(0xe5) return c:IsSetCard(0xe5)
and Duel.IsExistingMatchingCard(aux.NegateMonsterFilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,Group.FromCards(c)) and Duel.IsExistingMatchingCard(c11561076.NegateFilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,Group.FromCards(c))
end
function c11561076.NegateFilter(c)
return c:IsFaceup() and not c:IsDisabled() and ((c:IsType(TYPE_EFFECT) or c:GetOriginalType()&TYPE_EFFECT~=0) or c:IsType(0x6))
end end
function c11561076.fselect(g,tp) function c11561076.fselect(g,tp)
return Duel.IsExistingMatchingCard(aux.NegateMonsterFilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,g:GetCount(),g) return Duel.IsExistingMatchingCard(c11561076.NegateFilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,g:GetCount(),g)
and Duel.CheckReleaseGroup(tp,aux.IsInGroup,#g,nil,g) and Duel.CheckReleaseGroup(tp,aux.IsInGroup,#g,nil,g)
end end
function c11561076.discost(e,tp,eg,ep,ev,re,r,rp,chk) function c11561076.discost(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -52,14 +55,14 @@ function c11561076.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -52,14 +55,14 @@ function c11561076.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
local ct=e:GetLabel() local ct=e:GetLabel()
local g1=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,LOCATION_ONFIELD) local g1=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,LOCATION_ONFIELD)
local g=g1:Filter(aux.NegateMonsterFilter,nil) local g=g1:Filter(c11561076.NegateFilter,nil)
Duel.SetOperationInfo(0,CATEGORY_DISABLE,g,ct,0,0) Duel.SetOperationInfo(0,CATEGORY_DISABLE,g,ct,0,0)
end end
function c11561076.disop(e,tp,eg,ep,ev,re,r,rp) function c11561076.disop(e,tp,eg,ep,ev,re,r,rp)
local ct=e:GetLabel() local ct=e:GetLabel()
local c=e:GetHandler() local c=e:GetHandler()
local g1=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,LOCATION_ONFIELD) local g1=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,LOCATION_ONFIELD)
local g=g1:Filter(aux.NegateMonsterFilter,nil) local g=g1:Filter(c11561076.NegateFilter,nil)
if g:GetCount()>=ct then if g:GetCount()>=ct then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELECT) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELECT)
local dg=g:Select(tp,ct,ct,nil) local dg=g:Select(tp,ct,ct,nil)
...@@ -119,7 +122,7 @@ end ...@@ -119,7 +122,7 @@ end
function c11561076.operation(e,tp,eg,ep,ev,re,r,rp) function c11561076.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local tc=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) local tc=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil):GetFirst()
--battle indestructable --battle indestructable
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -171,7 +171,7 @@ function c28335633.tdcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -171,7 +171,7 @@ function c28335633.tdcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c28335633.tdcost(e,tp,eg,ep,ev,re,r,rp,chk) function c28335633.tdcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToDeckAsCost() end if chk==0 then return e:GetHandler():IsAbleToDeckAsCost() end
Duel.HintSelection(e:GetHandler()) Duel.HintSelection(Group.FromCards(e:GetHandler()))
Duel.SendtoDeck(e:GetHandler(),nil,SEQ_DECKSHUFFLE,REASON_COST) Duel.SendtoDeck(e:GetHandler(),nil,SEQ_DECKSHUFFLE,REASON_COST)
end end
function c28335633.tdfilter(c) function c28335633.tdfilter(c)
......
...@@ -83,7 +83,7 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -83,7 +83,7 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local b1=false local b1=false
local b2=false local b2=false
local b3=false local b3=false
if re and re:GetHandler() then --[[if re and re:GetHandler() then
b1=(re:GetHandler():GetControler()==1-c:GetOwner()) b1=(re:GetHandler():GetControler()==1-c:GetOwner())
end end
if c:GetReasonCard() then if c:GetReasonCard() then
...@@ -91,7 +91,7 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -91,7 +91,7 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
end end
if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then
b3=(c:GetReasonEffect():GetHandler():GetControler()==1-c:GetOwner()) b3=(c:GetReasonEffect():GetHandler():GetControler()==1-c:GetOwner())
end end]]
return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)) return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE))
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -91,15 +91,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -91,15 +91,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local b1=false local b1=false
local b2=false local b2=false
local b3=false local b3=false
if re and re:GetHandler() then --[[if re and re:GetHandler() then
b1=(pl==1-c:GetOwner()) b1=(re:GetHandler():GetControler()==1-c:GetOwner())
end end
if c:GetReasonCard() then if c:GetReasonCard() then
b2=(c:GetReasonCard():GetControler()==1-c:GetOwner()) b2=(c:GetReasonCard():GetControler()==1-c:GetOwner())
end end
if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then
b3=(c:GetReasonEffect():GetHandlerPlayer()==1-c:GetOwner()) b3=(c:GetReasonEffect():GetHandler():GetControler()==1-c:GetOwner())
end end]]
return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)) return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE))
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -71,15 +71,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,15 +71,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local b1=false local b1=false
local b2=false local b2=false
local b3=false local b3=false
if re and re:GetHandler() then --[[if re and re:GetHandler() then
b1=(pl==1-c:GetOwner()) b1=(re:GetHandler():GetControler()==1-c:GetOwner())
end end
if c:GetReasonCard() then if c:GetReasonCard() then
b2=(c:GetReasonCard():GetControler()==1-c:GetOwner()) b2=(c:GetReasonCard():GetControler()==1-c:GetOwner())
end end
if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then
b3=(c:GetReasonEffect():GetHandlerPlayer()==1-c:GetOwner()) b3=(c:GetReasonEffect():GetHandler():GetControler()==1-c:GetOwner())
end end]]
return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)) return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE))
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -66,15 +66,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,15 +66,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local b1=false local b1=false
local b2=false local b2=false
local b3=false local b3=false
if re and re:GetHandler() then --[[if re and re:GetHandler() then
b1=(pl==1-c:GetOwner()) b1=(re:GetHandler():GetControler()==1-c:GetOwner())
end end
if c:GetReasonCard() then if c:GetReasonCard() then
b2=(c:GetReasonCard():GetControler()==1-c:GetOwner()) b2=(c:GetReasonCard():GetControler()==1-c:GetOwner())
end end
if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then
b3=(c:GetReasonEffect():GetHandlerPlayer()==1-c:GetOwner()) b3=(c:GetReasonEffect():GetHandler():GetControler()==1-c:GetOwner())
end end]]
return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)) return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE))
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -109,15 +109,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -109,15 +109,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local b1=false local b1=false
local b2=false local b2=false
local b3=false local b3=false
if re and re:GetHandler() then --[[if re and re:GetHandler() then
b1=(pl==1-c:GetOwner()) b1=(re:GetHandler():GetControler()==1-c:GetOwner())
end end
if c:GetReasonCard() then if c:GetReasonCard() then
b2=(c:GetReasonCard():GetControler()==1-c:GetOwner()) b2=(c:GetReasonCard():GetControler()==1-c:GetOwner())
end end
if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then
b3=(c:GetReasonEffect():GetHandlerPlayer()==1-c:GetOwner()) b3=(c:GetReasonEffect():GetHandler():GetControler()==1-c:GetOwner())
end end]]
return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)) return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE))
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -87,15 +87,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,15 +87,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local b1=false local b1=false
local b2=false local b2=false
local b3=false local b3=false
if re and re:GetHandler() then --[[if re and re:GetHandler() then
b1=(pl==1-c:GetOwner()) b1=(re:GetHandler():GetControler()==1-c:GetOwner())
end end
if c:GetReasonCard() then if c:GetReasonCard() then
b2=(c:GetReasonCard():GetControler()==1-c:GetOwner()) b2=(c:GetReasonCard():GetControler()==1-c:GetOwner())
end end
if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then
b3=(c:GetReasonEffect():GetHandlerPlayer()==1-c:GetOwner()) b3=(c:GetReasonEffect():GetHandler():GetControler()==1-c:GetOwner())
end end]]
return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)) return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE))
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -98,15 +98,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -98,15 +98,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local b1=false local b1=false
local b2=false local b2=false
local b3=false local b3=false
if re and re:GetHandler() then --[[if re and re:GetHandler() then
b1=(pl==1-c:GetOwner()) b1=(re:GetHandler():GetControler()==1-c:GetOwner())
end end
if c:GetReasonCard() then if c:GetReasonCard() then
b2=(c:GetReasonCard():GetControler()==1-c:GetOwner()) b2=(c:GetReasonCard():GetControler()==1-c:GetOwner())
end end
if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then
b3=(c:GetReasonEffect():GetHandlerPlayer()==1-c:GetOwner()) b3=(c:GetReasonEffect():GetHandler():GetControler()==1-c:GetOwner())
end end]]
return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)) return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE))
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -85,15 +85,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,15 +85,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local b1=false local b1=false
local b2=false local b2=false
local b3=false local b3=false
if re and re:GetHandler() then --[[if re and re:GetHandler() then
b1=(pl==1-c:GetOwner()) b1=(re:GetHandler():GetControler()==1-c:GetOwner())
end end
if c:GetReasonCard() then if c:GetReasonCard() then
b2=(c:GetReasonCard():GetControler()==1-c:GetOwner()) b2=(c:GetReasonCard():GetControler()==1-c:GetOwner())
end end
if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then
b3=(c:GetReasonEffect():GetHandlerPlayer()==1-c:GetOwner()) b3=(c:GetReasonEffect():GetHandler():GetControler()==1-c:GetOwner())
end end]]
return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)) return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE))
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -27,7 +27,7 @@ function cm.initial_effect(c) ...@@ -27,7 +27,7 @@ function cm.initial_effect(c)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_TOHAND) e3:SetCategory(CATEGORY_TOHAND)
e3:SetDescription(aux.Stringid(m,2)) e3:SetDescription(aux.Stringid(m,2))
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e3:SetCode(EVENT_PHASE+PHASE_END) e3:SetCode(EVENT_PHASE+PHASE_END)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1) e3:SetCountLimit(1)
...@@ -96,15 +96,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -96,15 +96,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local b1=false local b1=false
local b2=false local b2=false
local b3=false local b3=false
if re and re:GetHandler() then --[[if re and re:GetHandler() then
b1=(pl==1-c:GetOwner()) b1=(re:GetHandler():GetControler()==1-c:GetOwner())
end end
if c:GetReasonCard() then if c:GetReasonCard() then
b2=(c:GetReasonCard():GetControler()==1-c:GetOwner()) b2=(c:GetReasonCard():GetControler()==1-c:GetOwner())
end end
if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then
b3=(c:GetReasonEffect():GetHandlerPlayer()==1-c:GetOwner()) b3=(c:GetReasonEffect():GetHandler():GetControler()==1-c:GetOwner())
end end]]
return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)) return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE))
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -196,15 +196,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -196,15 +196,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local b1=false local b1=false
local b2=false local b2=false
local b3=false local b3=false
if re and re:GetHandler() then --[[if re and re:GetHandler() then
b1=(pl==1-c:GetOwner()) b1=(re:GetHandler():GetControler()==1-c:GetOwner())
end end
if c:GetReasonCard() then if c:GetReasonCard() then
b2=(c:GetReasonCard():GetControler()==1-c:GetOwner()) b2=(c:GetReasonCard():GetControler()==1-c:GetOwner())
end end
if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then
b3=(c:GetReasonEffect():GetHandlerPlayer()==1-c:GetOwner()) b3=(c:GetReasonEffect():GetHandler():GetControler()==1-c:GetOwner())
end end]]
return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)) return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE))
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -84,15 +84,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,15 +84,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local b1=false local b1=false
local b2=false local b2=false
local b3=false local b3=false
if re and re:GetHandler() then --[[if re and re:GetHandler() then
b1=(pl==1-c:GetOwner()) b1=(re:GetHandler():GetControler()==1-c:GetOwner())
end end
if c:GetReasonCard() then if c:GetReasonCard() then
b2=(c:GetReasonCard():GetControler()==1-c:GetOwner()) b2=(c:GetReasonCard():GetControler()==1-c:GetOwner())
end end
if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then
b3=(c:GetReasonEffect():GetHandlerPlayer()==1-c:GetOwner()) b3=(c:GetReasonEffect():GetHandler():GetControler()==1-c:GetOwner())
end end]]
return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)) return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE))
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -119,15 +119,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -119,15 +119,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local b1=false local b1=false
local b2=false local b2=false
local b3=false local b3=false
if re and re:GetHandler() then --[[if re and re:GetHandler() then
b1=(pl==1-c:GetOwner()) b1=(re:GetHandler():GetControler()==1-c:GetOwner())
end end
if c:GetReasonCard() then if c:GetReasonCard() then
b2=(c:GetReasonCard():GetControler()==1-c:GetOwner()) b2=(c:GetReasonCard():GetControler()==1-c:GetOwner())
end end
if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then
b3=(c:GetReasonEffect():GetHandlerPlayer()==1-c:GetOwner()) b3=(c:GetReasonEffect():GetHandler():GetControler()==1-c:GetOwner())
end end]]
return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)) return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE))
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -70,15 +70,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,15 +70,15 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local b1=false local b1=false
local b2=false local b2=false
local b3=false local b3=false
if re and re:GetHandler() then --[[if re and re:GetHandler() then
b1=(pl==1-c:GetOwner()) b1=(re:GetHandler():GetControler()==1-c:GetOwner())
end end
if c:GetReasonCard() then if c:GetReasonCard() then
b2=(c:GetReasonCard():GetControler()==1-c:GetOwner()) b2=(c:GetReasonCard():GetControler()==1-c:GetOwner())
end end
if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then if c:GetReasonEffect() and c:GetReasonEffect():GetHandler() then
b3=(c:GetReasonEffect():GetHandlerPlayer()==1-c:GetOwner()) b3=(c:GetReasonEffect():GetHandler():GetControler()==1-c:GetOwner())
end end]]
return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)) return (c:GetReasonPlayer()==1-c:GetOwner() or b1 or b2 or b3) and (not (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE))
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
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