Commit d610f7ef authored by Nemo Ma's avatar Nemo Ma

Sync Data 20181013

parent dd7600ce
No preview for this file type
expansions/pics/33700211.jpg

14.2 KB | W: | H:

expansions/pics/33700211.jpg

13.4 KB | W: | H:

expansions/pics/33700211.jpg
expansions/pics/33700211.jpg
expansions/pics/33700211.jpg
expansions/pics/33700211.jpg
  • 2-up
  • Swipe
  • Onion skin
...@@ -11,7 +11,7 @@ function c33700018.initial_effect(c) ...@@ -11,7 +11,7 @@ function c33700018.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c33700018.condition(e,tp,eg,ep,ev,re,r,rp) function c33700018.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp and (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE) return Duel.GetTurnPlayer()==1-tp and (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)
end end
function c33700018.filter(c,tp) function c33700018.filter(c,tp)
return c:GetSummonPlayer()==1-tp and c:IsControlerCanBeChanged() return c:GetSummonPlayer()==1-tp and c:IsControlerCanBeChanged()
......
...@@ -12,7 +12,7 @@ function c33700019.initial_effect(c) ...@@ -12,7 +12,7 @@ function c33700019.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c33700019.condition(e,tp,eg,ep,ev,re,r,rp) function c33700019.condition(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and bit.band(r,REASON_DESTROY)~=0 and eg:IsExists(c33700019.filter,1,nil) return rp==1-tp and bit.band(r,REASON_DESTROY)~=0 and eg:IsExists(c33700019.filter,1,nil)
end end
function c33700019.filter(c) function c33700019.filter(c)
return c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsReason(REASON_EFFECT) return c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsReason(REASON_EFFECT)
......
...@@ -55,7 +55,7 @@ end ...@@ -55,7 +55,7 @@ end
function c33700043.spcon(e,tp,eg,ep,ev,re,r,rp) function c33700043.spcon(e,tp,eg,ep,ev,re,r,rp)
local ct1=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,0):FilterCount(Card.IsFacedown,nil) local ct1=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,0):FilterCount(Card.IsFacedown,nil)
local ct2=Duel.GetFieldGroup(tp,0,LOCATION_ONFIELD):FilterCount(Card.IsFacedown,nil) local ct2=Duel.GetFieldGroup(tp,0,LOCATION_ONFIELD):FilterCount(Card.IsFacedown,nil)
return Duel.GetTurnPlayer()~=tp and rp~=tp and ct1<ct2 return Duel.GetTurnPlayer()==1-tp and rp==1-tp and ct1<ct2
end end
function c33700043.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c33700043.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp)>0 if chk==0 then return Duel.GetMZoneCount(tp)>0
......
...@@ -91,7 +91,7 @@ function c33700054.jfilter(c) ...@@ -91,7 +91,7 @@ function c33700054.jfilter(c)
end end
function c33700054.drcon(e,tp,eg,ep,ev,re,r,rp) function c33700054.drcon(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c33700054.confiltert,tp,LOCATION_GRAVE,0,nil) local g=Duel.GetMatchingGroup(c33700054.confiltert,tp,LOCATION_GRAVE,0,nil)
return (g:GetClassCount(Card.GetCode)>=e:GetLabel() or e:GetLabel()==33700090) and ep~=tp return (g:GetClassCount(Card.GetCode)>=e:GetLabel() or e:GetLabel()==33700090) and ep==1-tp
end end
function c33700054.confilter(c) function c33700054.confilter(c)
return c:IsSetCard(0x442) and c:IsFaceup() and c:IsType(TYPE_MONSTER) return c:IsSetCard(0x442) and c:IsFaceup() and c:IsType(TYPE_MONSTER)
......
...@@ -50,7 +50,7 @@ function c33700058.con(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,7 +50,7 @@ function c33700058.con(e,tp,eg,ep,ev,re,r,rp)
end end
function c33700058.spfilter(c,e,tp,tid) function c33700058.spfilter(c,e,tp,tid)
return c:IsSetCard(0x442) and c:IsType(TYPE_MONSTER) return c:IsSetCard(0x442) and c:IsType(TYPE_MONSTER)
and c:GetTurnID()==tid and (c:IsReason(REASON_BATTLE) or bit.band(c:GetReason(),0x41)==0x41 and c:GetReasonPlayer()~=tp) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:GetTurnID()==tid and (c:IsReason(REASON_BATTLE) or bit.band(c:GetReason(),0x41)==0x41 and c:GetReasonPlayer()==1-tp) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c33700058.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c33700058.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local tid=Duel.GetTurnCount() local tid=Duel.GetTurnCount()
......
...@@ -93,7 +93,7 @@ end ...@@ -93,7 +93,7 @@ end
end end
end end
function c33700061.damcon(e,tp,eg,ep,ev,re,r,rp) function c33700061.damcon(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp return ep==1-tp
end end
function c33700061.damop(e,tp,eg,ep,ev,re,r,rp) function c33700061.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangeBattleDamage(ep,ev*2) Duel.ChangeBattleDamage(ep,ev*2)
......
...@@ -54,7 +54,7 @@ function c33700087.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -54,7 +54,7 @@ function c33700087.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.PayLPCost(tp,1000) Duel.PayLPCost(tp,1000)
end end
function c33700087.dcon(e,tp,eg,ep,ev,re,r,rp) function c33700087.dcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c33700087.tgfilter,1,nil,tp) and rp~=tp return eg:IsExists(c33700087.tgfilter,1,nil,tp) and rp==1-tp
end end
function c33700087.dtg(e,tp,eg,ep,ev,re,r,rp,chk) function c33700087.dtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
...@@ -77,7 +77,7 @@ function c33700087.atop(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,7 +77,7 @@ function c33700087.atop(e,tp,eg,ep,ev,re,r,rp)
end end
function c33700087.condition(e,tp,eg,ep,ev,re,r,rp) function c33700087.condition(e,tp,eg,ep,ev,re,r,rp)
local at=Duel.GetAttacker() local at=Duel.GetAttacker()
return at:GetControler()~=tp and Duel.GetAttackTarget()==nil return at:GetControler()==1-tp and Duel.GetAttackTarget()==nil
end end
function c33700087.cost2(e,tp,eg,ep,ev,re,r,rp,chk) function c33700087.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c33700087.filter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c33700087.filter,tp,LOCATION_GRAVE,0,1,nil) end
......
...@@ -88,7 +88,7 @@ function c33700096.jfilter(c) ...@@ -88,7 +88,7 @@ function c33700096.jfilter(c)
end end
function c33700096.cbcon(e,tp,eg,ep,ev,re,r,rp) function c33700096.cbcon(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c33700096.confilter,e:GetHandlerPlayer(),LOCATION_GRAVE,0,nil) local g=Duel.GetMatchingGroup(c33700096.confilter,e:GetHandlerPlayer(),LOCATION_GRAVE,0,nil)
return Duel.GetTurnPlayer()~=tp and Duel.GetAttackTarget()~=e:GetHandler() and (g:GetClassCount(Card.GetCode)>=e:GetLabel() or e:GetLabel()==33700090) return Duel.GetTurnPlayer()==1-tp and Duel.GetAttackTarget()~=e:GetHandler() and (g:GetClassCount(Card.GetCode)>=e:GetLabel() or e:GetLabel()==33700090)
end end
function c33700096.cbop(e,tp,eg,ep,ev,re,r,rp) function c33700096.cbop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -60,7 +60,7 @@ function c33700122.cfilter(c) ...@@ -60,7 +60,7 @@ function c33700122.cfilter(c)
return c:IsSetCard(0x443) return c:IsSetCard(0x443)
end end
function c33700122.ctcon(e,tp,eg,ep,ev,re,r,rp) function c33700122.ctcon(e,tp,eg,ep,ev,re,r,rp)
return g:IsExists(c33700122.cfilter,1,nil) and bit.band(r,REASON_EFFECT)~=0 and ep~=tp return g:IsExists(c33700122.cfilter,1,nil) and bit.band(r,REASON_EFFECT)~=0 and ep==1-tp
end end
function c33700122.ctop(e,tp,eg,ep,ev,re,r,rp) function c33700122.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x5,1) e:GetHandler():AddCounter(0x5,1)
......
...@@ -58,7 +58,7 @@ function c33700128.effop(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,7 +58,7 @@ function c33700128.effop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c33700128.hdcon(e,tp,eg,ep,ev,re,r,rp) function c33700128.hdcon(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and Duel.GetCurrentPhase()~=PHASE_DRAW return ep==1-tp and Duel.GetCurrentPhase()~=PHASE_DRAW
end end
function c33700128.hdtg(e,tp,eg,ep,ev,re,r,rp,chk) function c33700128.hdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -62,7 +62,7 @@ function c33700129.cfilter(c) ...@@ -62,7 +62,7 @@ function c33700129.cfilter(c)
return c:IsSetCard(0x443) return c:IsSetCard(0x443)
end end
function c33700129.con(e,tp,eg,ep,ev,re,r,rp) function c33700129.con(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c33700129.cfilter,1,nil) and bit.band(r,REASON_EFFECT)~=0 and ep~=tp return eg:IsExists(c33700129.cfilter,1,nil) and bit.band(r,REASON_EFFECT)~=0 and ep==1-tp
end end
function c33700129.rectg(e,tp,eg,ep,ev,re,r,rp,chk) function c33700129.rectg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -11,7 +11,7 @@ function c33700136.initial_effect(c) ...@@ -11,7 +11,7 @@ function c33700136.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c33700136.con(e,tp,eg,ep,ev,re,r,rp) function c33700136.con(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and r==REASON_RULE return ep==1-tp and r==REASON_RULE
end end
function c33700136.tg(e,tp,eg,ep,ev,re,r,rp,chk) function c33700136.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp)>0 if chk==0 then return Duel.GetMZoneCount(tp)>0
......
...@@ -100,7 +100,7 @@ function c33700143.ntrcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -100,7 +100,7 @@ function c33700143.ntrcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c33700143.ntrtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c33700143.ntrtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:GetLocation()==LOCATION_MZONE and chkc:GetControler()~=tp and chkc:IsControlerCanBeChanged() end if chkc then return chkc:GetLocation()==LOCATION_MZONE and chkc:GetControler()==1-tp and chkc:IsControlerCanBeChanged() end
if chk==0 then return Duel.IsExistingTarget(Card.IsControlerCanBeChanged,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsControlerCanBeChanged,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
local g=Duel.SelectTarget(tp,Card.IsControlerCanBeChanged,tp,0,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,Card.IsControlerCanBeChanged,tp,0,LOCATION_MZONE,1,1,nil)
......
...@@ -14,7 +14,7 @@ function c33700153.initial_effect(c) ...@@ -14,7 +14,7 @@ function c33700153.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c33700153.condition(e,tp,eg,ep,ev,re,r,rp) function c33700153.condition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and r~=REASON_RULE return ep==1-tp and r~=REASON_RULE
end end
function c33700153.target(e,tp,eg,ep,ev,re,r,rp,chk) function c33700153.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsAbleToRemove() end if chk==0 then return eg:IsAbleToRemove() end
......
...@@ -19,7 +19,7 @@ function c33700156.dircon(e) ...@@ -19,7 +19,7 @@ function c33700156.dircon(e)
end end
function c33700156.con(e,tp,eg,ep,ev,re,r,rp) function c33700156.con(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return ep~=tp and Duel.GetAttackTarget()==nil and Duel.GetLP(e:GetHandlerPlayer())<Duel.GetLP(1-e:GetHandlerPlayer()) return ep==1-tp and Duel.GetAttackTarget()==nil and Duel.GetLP(e:GetHandlerPlayer())<Duel.GetLP(1-e:GetHandlerPlayer())
end end
function c33700156.op(e,tp,eg,ep,ev,re,r,rp) function c33700156.op(e,tp,eg,ep,ev,re,r,rp)
if ev>0 then if ev>0 then
......
...@@ -14,7 +14,7 @@ function c33700157.initial_effect(c) ...@@ -14,7 +14,7 @@ function c33700157.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c33700157.con(e,tp,eg,ep,ev,re,r,rp) function c33700157.con(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp return ep==1-tp
end end
function c33700157.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c33700157.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsPublic() end if chk==0 then return not e:GetHandler():IsPublic() end
......
...@@ -37,7 +37,7 @@ function c33700159.tg(e,c) ...@@ -37,7 +37,7 @@ function c33700159.tg(e,c)
end end
function c33700159.recon(e,tp,eg,ep,ev,re,r,rp) function c33700159.recon(e,tp,eg,ep,ev,re,r,rp)
local rc=eg:GetFirst() local rc=eg:GetFirst()
return ep~=tp and rc:IsControler(tp) and rc:IsRace(RACE_T) and Duel.GetAttackTarget()==nil and Duel.GetLP(tp)>=12000 return ep==1-tp and rc:IsControler(tp) and rc:IsRace(RACE_T) and Duel.GetAttackTarget()==nil and Duel.GetLP(tp)>=12000
end end
function c33700159.retg(e,tp,eg,ep,ev,re,r,rp,chk) function c33700159.retg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -64,7 +64,7 @@ function c33700164.damop(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,7 +64,7 @@ function c33700164.damop(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,0) e1:SetTargetRange(1,0)
e1:SetValue(c33700164.damval) e1:SetValue(c33700164.damval)
if Duel.GetTurnPlayer()~=tp then if Duel.GetTurnPlayer()==1-tp then
e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN,2) e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN,2)
else else
e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN) e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN)
......
...@@ -76,7 +76,7 @@ function c33700165.sdcon(e) ...@@ -76,7 +76,7 @@ function c33700165.sdcon(e)
return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_HAND,0)==0 return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_HAND,0)==0
end end
function c33700165.descon(e,tp,eg,ep,ev,re,r,rp) function c33700165.descon(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsDestructable() and Duel.GetTurnPlayer()==1-tp return rp==1-tp and re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsDestructable() and Duel.GetTurnPlayer()==1-tp
end end
function c33700165.desfilter(c) function c33700165.desfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsDiscardable() return c:IsType(TYPE_MONSTER) and c:IsDiscardable()
...@@ -97,7 +97,7 @@ function c33700165.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -97,7 +97,7 @@ function c33700165.desop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c33700165.discon(e,tp,eg,ep,ev,re,r,rp) function c33700165.discon(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and Duel.IsChainDisablable(ev) and Duel.GetTurnPlayer()==1-tp return rp==1-tp and re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and Duel.IsChainDisablable(ev) and Duel.GetTurnPlayer()==1-tp
end end
function c33700165.disfilter(c) function c33700165.disfilter(c)
return c:IsType(TYPE_SPELL) and c:IsDiscardable() return c:IsType(TYPE_SPELL) and c:IsDiscardable()
...@@ -118,7 +118,7 @@ function c33700165.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -118,7 +118,7 @@ function c33700165.disop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c33700165.drcon(e,tp,eg,ep,ev,re,r,rp) function c33700165.drcon(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and Duel.GetCurrentPhase()~=PHASE_DRAW and Duel.GetTurnPlayer()==1-tp return ep==1-tp and Duel.GetCurrentPhase()~=PHASE_DRAW and Duel.GetTurnPlayer()==1-tp
end end
function c33700165.drfilter(c) function c33700165.drfilter(c)
return c:IsType(TYPE_TRAP) and c:IsDiscardable() return c:IsType(TYPE_TRAP) and c:IsDiscardable()
......
...@@ -51,7 +51,7 @@ function c33700168.cfilter(c) ...@@ -51,7 +51,7 @@ function c33700168.cfilter(c)
return c:IsSetCard(0x443) return c:IsSetCard(0x443)
end end
function c33700168.atkcon(e,tp,eg,ep,ev,re,r,rp) function c33700168.atkcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c33700168.cfilter,1,nil) and bit.band(r,REASON_EFFECT)~=0 and ep~=tp return eg:IsExists(c33700168.cfilter,1,nil) and bit.band(r,REASON_EFFECT)~=0 and ep==1-tp
end end
function c33700168.atkop(e,tp,eg,ep,ev,re,r,rp) function c33700168.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -54,7 +54,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +54,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp) function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:GetReasonPlayer()~=tp and c:IsReason(REASON_EFFECT) return c:GetReasonPlayer()==1-tp and c:IsReason(REASON_EFFECT)
end end
function cm.filter1(c) function cm.filter1(c)
return c:IsSetCard(0x442) and c:IsAbleToHand() return c:IsSetCard(0x442) and c:IsAbleToHand()
......
...@@ -22,7 +22,7 @@ function cm.initial_effect(c) ...@@ -22,7 +22,7 @@ function cm.initial_effect(c)
e2:SetCode(EVENT_TO_GRAVE) e2:SetCode(EVENT_TO_GRAVE)
e2:SetProperty(0x14000) e2:SetProperty(0x14000)
e2:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) e2:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp return rp==1-tp
end) end)
e2:SetTarget(cm.sptg) e2:SetTarget(cm.sptg)
e2:SetOperation(cm.spop) e2:SetOperation(cm.spop)
......
...@@ -105,7 +105,7 @@ function c33700192.ctop(e,tp,eg,ep,ev,re,r,rp) ...@@ -105,7 +105,7 @@ function c33700192.ctop(e,tp,eg,ep,ev,re,r,rp)
e:Reset() e:Reset()
return return
end end
if Duel.GetTurnPlayer()~=tp then return end if Duel.GetTurnPlayer()==1-tp then return end
ct=ct+1 ct=ct+1
c:SetTurnCounter(ct) c:SetTurnCounter(ct)
end end
......
...@@ -104,7 +104,7 @@ function c33700193.ctop(e,tp,eg,ep,ev,re,r,rp) ...@@ -104,7 +104,7 @@ function c33700193.ctop(e,tp,eg,ep,ev,re,r,rp)
e:Reset() e:Reset()
return return
end end
if Duel.GetTurnPlayer()~=tp then return end if Duel.GetTurnPlayer()==1-tp then return end
ct=ct+1 ct=ct+1
c:SetTurnCounter(ct) c:SetTurnCounter(ct)
end end
......
...@@ -107,7 +107,7 @@ function c33700195.ctop(e,tp,eg,ep,ev,re,r,rp) ...@@ -107,7 +107,7 @@ function c33700195.ctop(e,tp,eg,ep,ev,re,r,rp)
e:Reset() e:Reset()
return return
end end
if Duel.GetTurnPlayer()~=tp then return end if Duel.GetTurnPlayer()==1-tp then return end
ct=ct+1 ct=ct+1
c:SetTurnCounter(ct) c:SetTurnCounter(ct)
end end
......
...@@ -105,7 +105,7 @@ function c33700196.ctop(e,tp,eg,ep,ev,re,r,rp) ...@@ -105,7 +105,7 @@ function c33700196.ctop(e,tp,eg,ep,ev,re,r,rp)
e:Reset() e:Reset()
return return
end end
if Duel.GetTurnPlayer()~=tp then return end if Duel.GetTurnPlayer()==1-tp then return end
ct=ct+1 ct=ct+1
c:SetTurnCounter(ct) c:SetTurnCounter(ct)
end end
......
...@@ -103,7 +103,7 @@ function c33700198.ctop(e,tp,eg,ep,ev,re,r,rp) ...@@ -103,7 +103,7 @@ function c33700198.ctop(e,tp,eg,ep,ev,re,r,rp)
e:Reset() e:Reset()
return return
end end
if Duel.GetTurnPlayer()~=tp then return end if Duel.GetTurnPlayer()==1-tp then return end
ct=ct+1 ct=ct+1
c:SetTurnCounter(ct) c:SetTurnCounter(ct)
end end
......
...@@ -104,7 +104,7 @@ function c33700201.ctop(e,tp,eg,ep,ev,re,r,rp) ...@@ -104,7 +104,7 @@ function c33700201.ctop(e,tp,eg,ep,ev,re,r,rp)
e:Reset() e:Reset()
return return
end end
if Duel.GetTurnPlayer()~=tp then return end if Duel.GetTurnPlayer()==1-tp then return end
ct=ct+1 ct=ct+1
c:SetTurnCounter(ct) c:SetTurnCounter(ct)
end end
......
...@@ -104,7 +104,7 @@ function c33700202.ctop(e,tp,eg,ep,ev,re,r,rp) ...@@ -104,7 +104,7 @@ function c33700202.ctop(e,tp,eg,ep,ev,re,r,rp)
e:Reset() e:Reset()
return return
end end
if Duel.GetTurnPlayer()~=tp then return end if Duel.GetTurnPlayer()==1-tp then return end
ct=ct+1 ct=ct+1
c:SetTurnCounter(ct) c:SetTurnCounter(ct)
end end
......
...@@ -92,7 +92,7 @@ function c33700207.drval(e,c) ...@@ -92,7 +92,7 @@ function c33700207.drval(e,c)
return false return false
end end
function c33700207.cfilter(c,tp) function c33700207.cfilter(c,tp)
return c:GetPreviousControler()~=tp and (c:IsLocation(LOCATION_GRAVE) or c:IsReason(REASON_DISCARD)) and c:IsPreviousLocation(LOCATION_HAND) return c:GetPreviousControler()==1-tp and (c:IsLocation(LOCATION_GRAVE) or c:IsReason(REASON_DISCARD)) and c:IsPreviousLocation(LOCATION_HAND)
end end
function c33700207.drcon1(e,tp,eg,ep,ev,re,r,rp) function c33700207.drcon1(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c33700207.cfilter,1,nil,tp) return eg:IsExists(c33700207.cfilter,1,nil,tp)
......
...@@ -32,7 +32,7 @@ function c33700208.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,7 +32,7 @@ function c33700208.op(e,tp,eg,ep,ev,re,r,rp)
if Duel.SendtoDeck(g,nil,2,REASON_EFFECT)<3 or g:FilterCount(Card.IsLocation,nil,LOCATION_DECK+LOCATION_EXTRA)<3 then return end if Duel.SendtoDeck(g,nil,2,REASON_EFFECT)<3 or g:FilterCount(Card.IsLocation,nil,LOCATION_DECK+LOCATION_EXTRA)<3 then return end
--if you do, Draw 1 card. If this card is activated in your opponent's turn, you can draw 1 more card. --if you do, Draw 1 card. If this card is activated in your opponent's turn, you can draw 1 more card.
local d=1 local d=1
if Duel.GetTurnPlayer()~=tp then d=d+1 end if Duel.GetTurnPlayer()==1-tp then d=d+1 end
Duel.Draw(tp,d,REASON_EFFECT) Duel.Draw(tp,d,REASON_EFFECT)
local dg=Duel.GetOperatedGroup():Filter(Card.IsLocation,tp,LOCATION_HAND) local dg=Duel.GetOperatedGroup():Filter(Card.IsLocation,tp,LOCATION_HAND)
--And if it's a "Heavenly Maid" monster, you can Special Summon it. --And if it's a "Heavenly Maid" monster, you can Special Summon it.
......
...@@ -118,7 +118,7 @@ function cm.ctop(e,tp,eg,ep,ev,re,r,rp) ...@@ -118,7 +118,7 @@ function cm.ctop(e,tp,eg,ep,ev,re,r,rp)
e:Reset() e:Reset()
return return
end end
if Duel.GetTurnPlayer()~=tp then return end if Duel.GetTurnPlayer()==1-tp then return end
ct=ct+1 ct=ct+1
c:SetTurnCounter(ct) c:SetTurnCounter(ct)
end end
......
...@@ -43,7 +43,7 @@ function cm.con(e) ...@@ -43,7 +43,7 @@ function cm.con(e)
end end
function cm.damcon(e,tp,eg,ep,ev,re,r,rp) function cm.damcon(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
return ep~=tp and (tc:IsSetCard(0x1449) or tc:IsSetCard(0x3449)) return ep==1-tp and (tc:IsSetCard(0x1449) or tc:IsSetCard(0x3449))
end end
function cm.damop(e,tp,eg,ep,ev,re,r,rp) function cm.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangeBattleDamage(ep,ev*2) Duel.ChangeBattleDamage(ep,ev*2)
......
...@@ -28,7 +28,7 @@ function cm.initial_effect(c) ...@@ -28,7 +28,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.at(e,tp,eg,ep,ev,re,r,rp,chk) function cm.at(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetTurnPlayer()~=tp end if chk==0 then return Duel.GetTurnPlayer()==1-tp end
end end
function cm.ao(e,tp,eg,ep,ev,re,r,rp) function cm.ao(e,tp,eg,ep,ev,re,r,rp)
local at=Duel.GetAttackTarget() local at=Duel.GetAttackTarget()
......
...@@ -31,5 +31,5 @@ function c33700326.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,5 +31,5 @@ function c33700326.desop(e,tp,eg,ep,ev,re,r,rp)
end end
function c33700326.descon(e,tp,eg,ep,ev,re,r,rp) function c33700326.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return ep~=tp and c:GetBattleTarget()==nil and c:IsRelateToBattle() and c:GetColumnGroup():Filter(Card.IsControler,nil,tp):GetCount()==0 return ep==1-tp and c:GetBattleTarget()==nil and c:IsRelateToBattle() and c:GetColumnGroup():Filter(Card.IsControler,nil,tp):GetCount()==0
end end
...@@ -35,5 +35,5 @@ function c33700327.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,5 +35,5 @@ function c33700327.desop(e,tp,eg,ep,ev,re,r,rp)
end end
function c33700327.descon(e,tp,eg,ep,ev,re,r,rp) function c33700327.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return ep~=tp and c:GetBattleTarget()==nil and c:IsRelateToBattle() and c:GetColumnGroup():Filter(Card.IsControler,nil,tp):GetCount()==0 return ep==1-tp and c:GetBattleTarget()==nil and c:IsRelateToBattle() and c:GetColumnGroup():Filter(Card.IsControler,nil,tp):GetCount()==0
end end
...@@ -43,5 +43,5 @@ function c33700328.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,5 +43,5 @@ function c33700328.desop(e,tp,eg,ep,ev,re,r,rp)
end end
function c33700328.descon(e,tp,eg,ep,ev,re,r,rp) function c33700328.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return ep~=tp and c:GetBattleTarget()==nil and c:IsRelateToBattle() and c:GetColumnGroup():Filter(Card.IsControler,nil,tp):GetCount()==0 return ep==1-tp and c:GetBattleTarget()==nil and c:IsRelateToBattle() and c:GetColumnGroup():Filter(Card.IsControler,nil,tp):GetCount()==0
end end
...@@ -37,5 +37,5 @@ function c33700329.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,5 +37,5 @@ function c33700329.desop(e,tp,eg,ep,ev,re,r,rp)
end end
function c33700329.descon(e,tp,eg,ep,ev,re,r,rp) function c33700329.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return ep~=tp and c:GetBattleTarget()==nil and c:IsRelateToBattle() and c:GetColumnGroup():Filter(Card.IsControler,nil,tp):GetCount()==0 return ep==1-tp and c:GetBattleTarget()==nil and c:IsRelateToBattle() and c:GetColumnGroup():Filter(Card.IsControler,nil,tp):GetCount()==0
end end
...@@ -41,7 +41,7 @@ function c33700330.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,7 +41,7 @@ function c33700330.desop(e,tp,eg,ep,ev,re,r,rp)
end end
function c33700330.descon(e,tp,eg,ep,ev,re,r,rp) function c33700330.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return ep~=tp and c:GetBattleTarget()==nil and c:IsRelateToBattle() and c:GetColumnGroup():Filter(Card.IsControler,nil,tp):GetCount()==0 return ep==1-tp and c:GetBattleTarget()==nil and c:IsRelateToBattle() and c:GetColumnGroup():Filter(Card.IsControler,nil,tp):GetCount()==0
end end
function c33700330.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c33700330.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -20,7 +20,7 @@ function c33700331.check(c,tp) ...@@ -20,7 +20,7 @@ function c33700331.check(c,tp)
local g1=Duel.GetMatchingGroup(c33700331.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,c) local g1=Duel.GetMatchingGroup(c33700331.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,c)
local zone=0 local zone=0
for tc in aux.Next(g1) do for tc in aux.Next(g1) do
zone=bit.bor(zone,tc:GetColumnZone(LOCATION_MZONE,0,0,tp)) zone=bit.bor(zone,tc:GetColumnZone(LOCATION_MZONE,tp))
end end
return zone>0,zone return zone>0,zone
end end
...@@ -46,5 +46,5 @@ function c33700331.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,5 +46,5 @@ function c33700331.desop(e,tp,eg,ep,ev,re,r,rp)
end end
function c33700331.descon(e,tp,eg,ep,ev,re,r,rp) function c33700331.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return ep~=tp and c:GetBattleTarget()==nil and c:IsRelateToBattle() and c:GetColumnGroup():Filter(Card.IsControler,nil,tp):GetCount()==0 return ep==1-tp and c:GetBattleTarget()==nil and c:IsRelateToBattle() and c:GetColumnGroup():Filter(Card.IsControler,nil,tp):GetCount()==0
end end
...@@ -60,5 +60,5 @@ function c33700332.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,5 +60,5 @@ function c33700332.desop(e,tp,eg,ep,ev,re,r,rp)
end end
function c33700332.descon(e,tp,eg,ep,ev,re,r,rp) function c33700332.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return ep~=tp and c:GetBattleTarget()==nil and c:IsRelateToBattle() and c:GetColumnGroup():Filter(Card.IsControler,nil,tp):GetCount()==0 return ep==1-tp and c:GetBattleTarget()==nil and c:IsRelateToBattle() and c:GetColumnGroup():Filter(Card.IsControler,nil,tp):GetCount()==0
end end
...@@ -37,5 +37,5 @@ function c33700333.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,5 +37,5 @@ function c33700333.desop(e,tp,eg,ep,ev,re,r,rp)
end end
function c33700333.descon(e,tp,eg,ep,ev,re,r,rp) function c33700333.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return ep~=tp and c:GetBattleTarget()==nil and c:IsRelateToBattle() and c:GetColumnGroup():Filter(Card.IsControler,nil,tp):GetCount()==0 return ep==1-tp and c:GetBattleTarget()==nil and c:IsRelateToBattle() and c:GetColumnGroup():Filter(Card.IsControler,nil,tp):GetCount()==0
end end
...@@ -50,7 +50,7 @@ function c33700334.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,7 +50,7 @@ function c33700334.desop(e,tp,eg,ep,ev,re,r,rp)
end end
function c33700334.descon(e,tp,eg,ep,ev,re,r,rp) function c33700334.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return ep~=tp and c:GetBattleTarget()==nil and c:IsRelateToBattle() and c:GetColumnGroup():Filter(Card.IsControler,nil,tp):GetCount()==0 return ep==1-tp and c:GetBattleTarget()==nil and c:IsRelateToBattle() and c:GetColumnGroup():Filter(Card.IsControler,nil,tp):GetCount()==0
end end
function c33700334.tgtg2(e,c) function c33700334.tgtg2(e,c)
return e:GetHandler():GetLinkedGroup():IsContains(c) return e:GetHandler():GetLinkedGroup():IsContains(c)
......
...@@ -49,7 +49,7 @@ function c33700335.get_zone(c,tp) ...@@ -49,7 +49,7 @@ function c33700335.get_zone(c,tp)
local zone=0 local zone=0
local lg=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,LOCATION_ONFIELD) local lg=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,LOCATION_ONFIELD)
for tc in aux.Next(lg) do for tc in aux.Next(lg) do
zone=bit.bor(zone,tc:GetColumnZone(LOCATION_MZONE,0,0,tp)) zone=bit.bor(zone,tc:GetColumnZone(LOCATION_MZONE,tp))
end end
return zone return zone
end end
......
...@@ -51,7 +51,7 @@ function c33700336.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function c33700336.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function c33700336.damcon(e,tp,eg,ep,ev,re,r,rp) function c33700336.damcon(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
return ep~=tp and tc:IsSetCard(0x5449) and tc:GetBattleTarget()==nil return ep==1-tp and tc:IsSetCard(0x5449) and tc:GetBattleTarget()==nil
end end
function c33700336.damop(e,tp,eg,ep,ev,re,r,rp) function c33700336.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangeBattleDamage(ep,ev*2) Duel.ChangeBattleDamage(ep,ev*2)
......
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