Commit 5f67c188 authored by mercury233's avatar mercury233

add toss_coin mark

parent 75bb77aa
...@@ -37,6 +37,7 @@ function c15317640.initial_effect(c) ...@@ -37,6 +37,7 @@ function c15317640.initial_effect(c)
e4:SetOperation(c15317640.desop) e4:SetOperation(c15317640.desop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c15317640.toss_coin=true
function c15317640.addct(e,tp,eg,ep,ev,re,r,rp,chk) function c15317640.addct(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,2,0,0x1f) Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,2,0,0x1f)
......
...@@ -31,6 +31,7 @@ function c16625614.initial_effect(c) ...@@ -31,6 +31,7 @@ function c16625614.initial_effect(c)
e4:SetOperation(c16625614.operation) e4:SetOperation(c16625614.operation)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c16625614.toss_coin=true
function c16625614.chcon1(e,tp,eg,ep,ev,re,r,rp) function c16625614.chcon1(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler() local rc=re:GetHandler()
return rc:IsControler(tp) and rc:IsCode(94212438) and re:GetLabel()==94212438 return rc:IsControler(tp) and rc:IsCode(94212438) and re:GetLabel()==94212438
......
...@@ -49,6 +49,7 @@ function c17032740.initial_effect(c) ...@@ -49,6 +49,7 @@ function c17032740.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
c17032740.material_setcode=0x8 c17032740.material_setcode=0x8
c17032740.toss_coin=true
function c17032740.splimit(e,se,sp,st) function c17032740.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA) return not e:GetHandler():IsLocation(LOCATION_EXTRA)
end end
......
...@@ -30,6 +30,7 @@ function c21598948.initial_effect(c) ...@@ -30,6 +30,7 @@ function c21598948.initial_effect(c)
e3:SetOperation(c21598948.mtop) e3:SetOperation(c21598948.mtop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c21598948.toss_coin=true
function c21598948.atkcon(e,tp,eg,ep,ev,re,r,rp) function c21598948.atkcon(e,tp,eg,ep,ev,re,r,rp)
return tp~=Duel.GetTurnPlayer() return tp~=Duel.GetTurnPlayer()
end end
......
...@@ -11,6 +11,7 @@ function c2196767.initial_effect(c) ...@@ -11,6 +11,7 @@ function c2196767.initial_effect(c)
e1:SetOperation(c2196767.desop) e1:SetOperation(c2196767.desop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c2196767.toss_coin=true
function c2196767.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c2196767.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,3) Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,3)
......
...@@ -16,6 +16,7 @@ function c23846921.initial_effect(c) ...@@ -16,6 +16,7 @@ function c23846921.initial_effect(c)
e3:SetCode(EVENT_FLIP_SUMMON_SUCCESS) e3:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c23846921.toss_coin=true
function c23846921.cointg(e,tp,eg,ep,ev,re,r,rp,chk) function c23846921.cointg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1)
......
...@@ -12,6 +12,7 @@ function c25551951.initial_effect(c) ...@@ -12,6 +12,7 @@ function c25551951.initial_effect(c)
e1:SetOperation(c25551951.desop) e1:SetOperation(c25551951.desop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c25551951.toss_coin=true
function c25551951.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c25551951.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) end if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) end
if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
......
...@@ -29,6 +29,7 @@ function c28112535.initial_effect(c) ...@@ -29,6 +29,7 @@ function c28112535.initial_effect(c)
e5:SetOperation(c28112535.desop) e5:SetOperation(c28112535.desop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
c28112535.toss_coin=true
function c28112535.atklimit(e,tp,eg,ep,ev,re,r,rp) function c28112535.atklimit(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -16,6 +16,7 @@ function c34568403.initial_effect(c) ...@@ -16,6 +16,7 @@ function c34568403.initial_effect(c)
e3:SetCode(EVENT_FLIP_SUMMON_SUCCESS) e3:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c34568403.toss_coin=true
function c34568403.cointg(e,tp,eg,ep,ev,re,r,rp,chk) function c34568403.cointg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1)
......
...@@ -16,6 +16,7 @@ function c35781051.initial_effect(c) ...@@ -16,6 +16,7 @@ function c35781051.initial_effect(c)
e3:SetCode(EVENT_FLIP_SUMMON_SUCCESS) e3:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c35781051.toss_coin=true
function c35781051.cointg(e,tp,eg,ep,ev,re,r,rp,chk) function c35781051.cointg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1)
......
...@@ -27,6 +27,7 @@ function c36378044.initial_effect(c) ...@@ -27,6 +27,7 @@ function c36378044.initial_effect(c)
e3:SetOperation(c36378044.desop) e3:SetOperation(c36378044.desop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c36378044.toss_coin=true
function c36378044.atkcon(e,tp,eg,ep,ev,re,r,rp) function c36378044.atkcon(e,tp,eg,ep,ev,re,r,rp)
return tp~=Duel.GetTurnPlayer() return tp~=Duel.GetTurnPlayer()
end end
......
...@@ -14,6 +14,7 @@ function c36562627.initial_effect(c) ...@@ -14,6 +14,7 @@ function c36562627.initial_effect(c)
e2:SetOperation(c36562627.coinop) e2:SetOperation(c36562627.coinop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c36562627.toss_coin=true
function c36562627.coincon(e,tp,eg,ep,ev,re,r,rp) function c36562627.coincon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp and Duel.GetFlagEffect(tp,36562627)==0 return ep==tp and Duel.GetFlagEffect(tp,36562627)==0
end end
......
...@@ -10,6 +10,7 @@ function c37313786.initial_effect(c) ...@@ -10,6 +10,7 @@ function c37313786.initial_effect(c)
e1:SetOperation(c37313786.activate) e1:SetOperation(c37313786.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c37313786.toss_coin=true
function c37313786.condition(e,tp,eg,ep,ev,re,r,rp) function c37313786.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)<=2 and Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>=6 return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)<=2 and Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>=6
end end
......
...@@ -9,6 +9,7 @@ function c37812118.initial_effect(c) ...@@ -9,6 +9,7 @@ function c37812118.initial_effect(c)
e1:SetOperation(c37812118.activate) e1:SetOperation(c37812118.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c37812118.toss_coin=true
function c37812118.target(e,tp,eg,ep,ev,re,r,rp,chk) function c37812118.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,2) and Duel.IsPlayerCanDraw(1-tp,2) end if chk==0 then return Duel.IsPlayerCanDraw(tp,2) and Duel.IsPlayerCanDraw(1-tp,2) end
Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1)
......
...@@ -20,6 +20,7 @@ function c4483989.initial_effect(c) ...@@ -20,6 +20,7 @@ function c4483989.initial_effect(c)
e2:SetOperation(c4483989.atkop) e2:SetOperation(c4483989.atkop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c4483989.toss_coin=true
function c4483989.atkcon(e,tp,eg,ep,ev,re,r,rp) function c4483989.atkcon(e,tp,eg,ep,ev,re,r,rp)
local at=Duel.GetAttackTarget() local at=Duel.GetAttackTarget()
return tp~=Duel.GetTurnPlayer() and at and at:IsPosition(POS_FACEUP_DEFENSE) return tp~=Duel.GetTurnPlayer() and at and at:IsPosition(POS_FACEUP_DEFENSE)
......
...@@ -9,6 +9,7 @@ function c50470982.initial_effect(c) ...@@ -9,6 +9,7 @@ function c50470982.initial_effect(c)
e1:SetOperation(c50470982.activate) e1:SetOperation(c50470982.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c50470982.toss_coin=true
function c50470982.target(e,tp,eg,ep,ev,re,r,rp,chk) function c50470982.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,PLAYER_ALL,1) Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,PLAYER_ALL,1)
......
...@@ -11,6 +11,7 @@ function c50593156.initial_effect(c) ...@@ -11,6 +11,7 @@ function c50593156.initial_effect(c)
e1:SetOperation(c50593156.desop) e1:SetOperation(c50593156.desop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c50593156.toss_coin=true
function c50593156.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c50593156.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return true end if chk==0 then return true end
local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
......
...@@ -26,6 +26,7 @@ function c5861892.initial_effect(c) ...@@ -26,6 +26,7 @@ function c5861892.initial_effect(c)
e3:SetOperation(c5861892.coinop) e3:SetOperation(c5861892.coinop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c5861892.toss_coin=true
function c5861892.spfilter(c) function c5861892.spfilter(c)
return c:IsAbleToGraveAsCost() return c:IsAbleToGraveAsCost()
end end
......
...@@ -26,6 +26,7 @@ function c60953118.initial_effect(c) ...@@ -26,6 +26,7 @@ function c60953118.initial_effect(c)
e4:SetCode(EVENT_FLIP_SUMMON_SUCCESS) e4:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c60953118.toss_coin=true
function c60953118.damcon(e,tp,eg,ep,ev,re,r,rp) function c60953118.damcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetBattleDamage(tp)>0 return Duel.GetBattleDamage(tp)>0
end end
......
...@@ -16,6 +16,7 @@ function c61175706.initial_effect(c) ...@@ -16,6 +16,7 @@ function c61175706.initial_effect(c)
e3:SetCode(EVENT_FLIP_SUMMON_SUCCESS) e3:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c61175706.toss_coin=true
function c61175706.cointg(e,tp,eg,ep,ev,re,r,rp,chk) function c61175706.cointg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1)
......
...@@ -19,6 +19,7 @@ function c62784717.initial_effect(c) ...@@ -19,6 +19,7 @@ function c62784717.initial_effect(c)
e2:SetOperation(c62784717.coinop) e2:SetOperation(c62784717.coinop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c62784717.toss_coin=true
function c62784717.coincon(e,tp,eg,ep,ev,re,r,rp) function c62784717.coincon(e,tp,eg,ep,ev,re,r,rp)
return tp~=Duel.GetTurnPlayer() return tp~=Duel.GetTurnPlayer()
end end
......
...@@ -28,6 +28,7 @@ function c62892347.initial_effect(c) ...@@ -28,6 +28,7 @@ function c62892347.initial_effect(c)
e5:SetCode(EVENT_FLIP_SUMMON_SUCCESS) e5:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
c62892347.toss_coin=true
function c62892347.poscon(e) function c62892347.poscon(e)
return e:GetHandler():IsPosition(POS_FACEUP_ATTACK) return e:GetHandler():IsPosition(POS_FACEUP_ATTACK)
end end
......
...@@ -11,6 +11,7 @@ function c64538655.initial_effect(c) ...@@ -11,6 +11,7 @@ function c64538655.initial_effect(c)
e1:SetOperation(c64538655.desop) e1:SetOperation(c64538655.desop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c64538655.toss_coin=true
function c64538655.descon(e,tp,eg,ep,ev,re,r,rp) function c64538655.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttackTarget()~=nil return Duel.GetAttackTarget()~=nil
end end
......
...@@ -11,6 +11,7 @@ function c67959180.initial_effect(c) ...@@ -11,6 +11,7 @@ function c67959180.initial_effect(c)
e1:SetOperation(c67959180.operation) e1:SetOperation(c67959180.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c67959180.toss_coin=true
function c67959180.target(e,tp,eg,ep,ev,re,r,rp,chk) function c67959180.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1)
......
...@@ -26,6 +26,7 @@ function c69831560.initial_effect(c) ...@@ -26,6 +26,7 @@ function c69831560.initial_effect(c)
e3:SetOperation(c69831560.coinop) e3:SetOperation(c69831560.coinop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c69831560.toss_coin=true
function c69831560.spfilter(c) function c69831560.spfilter(c)
return c:IsAbleToGraveAsCost() return c:IsAbleToGraveAsCost()
end end
......
...@@ -17,6 +17,7 @@ function c70050374.initial_effect(c) ...@@ -17,6 +17,7 @@ function c70050374.initial_effect(c)
e3:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c70050374.toss_coin=true
function c70050374.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c70050374.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) end if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) end
if chk==0 then return true end if chk==0 then return true end
......
...@@ -11,6 +11,7 @@ function c71625222.initial_effect(c) ...@@ -11,6 +11,7 @@ function c71625222.initial_effect(c)
e1:SetOperation(c71625222.desop) e1:SetOperation(c71625222.desop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c71625222.toss_coin=true
function c71625222.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c71625222.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
......
...@@ -38,6 +38,7 @@ function c73206827.initial_effect(c) ...@@ -38,6 +38,7 @@ function c73206827.initial_effect(c)
e4:SetOperation(c73206827.recop) e4:SetOperation(c73206827.recop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c73206827.toss_coin=true
function c73206827.coincon(e,tp,eg,ep,ev,re,r,rp) function c73206827.coincon(e,tp,eg,ep,ev,re,r,rp)
return tp==Duel.GetTurnPlayer() return tp==Duel.GetTurnPlayer()
end end
......
...@@ -9,6 +9,7 @@ function c81172176.initial_effect(c) ...@@ -9,6 +9,7 @@ function c81172176.initial_effect(c)
e1:SetOperation(c81172176.activate) e1:SetOperation(c81172176.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c81172176.toss_coin=true
function c81172176.target(e,tp,eg,ep,ev,re,r,rp,chk) function c81172176.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,nil) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,nil)
and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=Duel.GetFieldGroupCount(tp,0,LOCATION_GRAVE) end and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=Duel.GetFieldGroupCount(tp,0,LOCATION_GRAVE) end
......
...@@ -12,6 +12,7 @@ function c81480460.initial_effect(c) ...@@ -12,6 +12,7 @@ function c81480460.initial_effect(c)
e1:SetOperation(c81480460.desop) e1:SetOperation(c81480460.desop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c81480460.toss_coin=true
function c81480460.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c81480460.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) end
if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_MZONE,1,nil) end
......
...@@ -11,6 +11,7 @@ function c82642348.initial_effect(c) ...@@ -11,6 +11,7 @@ function c82642348.initial_effect(c)
e1:SetOperation(c82642348.desop) e1:SetOperation(c82642348.desop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c82642348.toss_coin=true
function c82642348.descon(e,tp,eg,ep,ev,re,r,rp) function c82642348.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE) return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE)
end end
......
...@@ -16,6 +16,7 @@ function c8396952.initial_effect(c) ...@@ -16,6 +16,7 @@ function c8396952.initial_effect(c)
e3:SetCode(EVENT_FLIP_SUMMON_SUCCESS) e3:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c8396952.toss_coin=true
function c8396952.cointg(e,tp,eg,ep,ev,re,r,rp,chk) function c8396952.cointg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1)
......
...@@ -7,6 +7,7 @@ function c84677654.initial_effect(c) ...@@ -7,6 +7,7 @@ function c84677654.initial_effect(c)
e1:SetOperation(c84677654.operation) e1:SetOperation(c84677654.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c84677654.toss_coin=true
function c84677654.cfilter(c) function c84677654.cfilter(c)
return c:IsFaceup() and not c:IsType(TYPE_XYZ) return c:IsFaceup() and not c:IsType(TYPE_XYZ)
end end
......
...@@ -17,6 +17,7 @@ function c86767655.initial_effect(c) ...@@ -17,6 +17,7 @@ function c86767655.initial_effect(c)
e1:SetOperation(c86767655.disop) e1:SetOperation(c86767655.disop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c86767655.toss_coin=true
function c86767655.discon(e,tp,eg,ep,ev,re,r,rp) function c86767655.discon(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and Duel.IsChainDisablable(ev) and e:GetHandler():GetFlagEffect(1)>0 return rp~=tp and Duel.IsChainDisablable(ev) and e:GetHandler():GetFlagEffect(1)>0
end end
......
...@@ -14,6 +14,7 @@ function c87751584.initial_effect(c) ...@@ -14,6 +14,7 @@ function c87751584.initial_effect(c)
e1:SetOperation(c87751584.desop) e1:SetOperation(c87751584.desop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c87751584.toss_coin=true
function c87751584.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c87751584.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,3) Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,3)
......
...@@ -11,6 +11,7 @@ function c89718302.initial_effect(c) ...@@ -11,6 +11,7 @@ function c89718302.initial_effect(c)
e1:SetOperation(c89718302.damop) e1:SetOperation(c89718302.damop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c89718302.toss_coin=true
function c89718302.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function c89718302.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1)
......
...@@ -10,6 +10,7 @@ function c94773007.initial_effect(c) ...@@ -10,6 +10,7 @@ function c94773007.initial_effect(c)
e1:SetOperation(c94773007.atop) e1:SetOperation(c94773007.atop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c94773007.toss_coin=true
function c94773007.attg(e,tp,eg,ep,ev,re,r,rp,chk) function c94773007.attg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1)
......
...@@ -16,6 +16,7 @@ function c97452817.initial_effect(c) ...@@ -16,6 +16,7 @@ function c97452817.initial_effect(c)
e3:SetCode(EVENT_FLIP_SUMMON_SUCCESS) e3:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c97452817.toss_coin=true
function c97452817.cointg(e,tp,eg,ep,ev,re,r,rp,chk) function c97452817.cointg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1)
......
...@@ -16,6 +16,7 @@ function c97574404.initial_effect(c) ...@@ -16,6 +16,7 @@ function c97574404.initial_effect(c)
e3:SetCode(EVENT_FLIP_SUMMON_SUCCESS) e3:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c97574404.toss_coin=true
function c97574404.cointg(e,tp,eg,ep,ev,re,r,rp,chk) function c97574404.cointg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1)
......
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