Commit 428da9d9 authored by Tachibana's avatar Tachibana

ndyd

parent c9102487
......@@ -29,6 +29,7 @@ function cm.initial_effect(c)
e2:SetOperation(cm.activate)
c:RegisterEffect(e2)
end
cm.toss_dice=true
function cm.filter(c)
return c:IsRace(RACE_MACHINE) and c:IsLocation(LOCATION_HAND)
end
......
......@@ -24,6 +24,7 @@ function c1111001.initial_effect(c)
--
end
--
c1111001.toss_coin=true
function c1111001.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,3)
......
......@@ -23,6 +23,7 @@ function cm.initial_effect(c)
e2:SetOperation(cm.spop)
c:RegisterEffect(e2)
end
cm.toss_dice=true
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local deck=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)
......
......@@ -12,6 +12,7 @@ function cm.initial_effect(c)
e1:SetOperation(cm.execution)
c:RegisterEffect(e1)
end
cm.toss_coin=true
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0
end
......
......@@ -13,6 +13,7 @@ function c1150021.initial_effect(c)
--
end
--
c1150021.toss_coin=true
function c1150021.tg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,0,1,nil) end
......
......@@ -17,6 +17,7 @@ function c1150036.initial_effect(c)
--
end
--
c1150036.toss_dice=true
function c1150036.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>0 end
end
......
......@@ -32,6 +32,7 @@ function c1156016.initial_effect(c)
--
end
--
c1156016.toss_coin=true
function c1156016.lcheck(c)
return c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_SPELLCASTER) and c:IsType(TYPE_EFFECT)
end
......
......@@ -49,7 +49,7 @@ function c1160021.initial_effect(c)
c:RegisterEffect(e5)
--
end
--
c1160021.toss_coin=true--
function c1160021.con1(e,tp,eg,ep,ev,re,r,rp)
return re and re:GetHandler():GetLevel()==1
end
......
......@@ -21,6 +21,7 @@ function c1161001.initial_effect(c)
--
end
--
c1161001.toss_coin=true
function c1161001.cfilter1(c)
return c:IsFaceup() and c:GetLevel()==1
end
......
......@@ -27,6 +27,7 @@ function c12009012.initial_effect(c)
e3:SetOperation(c12009012.sgop)
c:RegisterEffect(e3)
end
c12009012.toss_coin=true
function c12009012.sgcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,2000) end
Duel.PayLPCost(tp,2000)
......
......@@ -49,6 +49,7 @@ function cm.initial_effect(c)
e8:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
c:RegisterEffect(e8)
end
cm.toss_dice=true
function c15000060.ctfilter(c)
return c:IsFaceup()
end
......
......@@ -9,6 +9,7 @@ function cm.initial_effect(c)
local e3=rsphh.ImmueFun(c,ATTRIBUTE_DARK)
local e4=rsphh.EndPhaseFun(c,15873611)
end
cm.toss_coin=true
function cm.fun(g,e,tp)
Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,2)
end
......
......@@ -14,6 +14,7 @@ function c16400011.initial_effect(c)
e2:SetOperation(c16400011.desop1)
c:RegisterEffect(e2)
end
c16400011.toss_dice=true
function c16400011.gaincon(code)
return function(e)
return Duel.IsExistingMatchingCard(c16400011.refilter,e:GetHandlerPlayer(),0,LOCATION_ONFIELD,1,nil)
......
......@@ -35,6 +35,7 @@ function cm.initial_effect(c)
e3:SetOperation(cm.penop)
c:RegisterEffect(e3)
end
cm.toss_dice=true
function cm.cfilter(c,tp)
return c:IsControler(tp) and c:IsSummonType(SUMMON_TYPE_PENDULUM)
end
......
......@@ -32,6 +32,7 @@ function c21520236.initial_effect(c)
c:RegisterEffect(e2)
Duel.AddCustomActivityCounter(21520236,ACTIVITY_CHAIN,c21520236.chainfilter)
end
c21520236.toss_coin=true
function c21520236.chainfilter(re,tp,cid)
return re:GetHandler():IsSetCard(0x491)
end
......
......@@ -32,6 +32,7 @@ function c21520237.initial_effect(c)
c:RegisterEffect(e2)
Duel.AddCustomActivityCounter(21520237,ACTIVITY_CHAIN,c21520237.chainfilter)
end
c21520237.toss_dice=true
function c21520237.chainfilter(re,tp,cid)
return re:GetHandler():IsSetCard(0x491)
end
......
......@@ -32,6 +32,7 @@ function c21520238.initial_effect(c)
c:RegisterEffect(e2)
Duel.AddCustomActivityCounter(21520238,ACTIVITY_CHAIN,c21520238.chainfilter)
end
c21520238.toss_dice=true
function c21520238.chainfilter(re,tp,cid)
return re:GetHandler():IsSetCard(0x491)
end
......
......@@ -28,6 +28,7 @@ function c22600022.initial_effect(c)
e2:SetOperation(c22600022.spop)
c:RegisterEffect(e2)
end
c22600022.toss_dice=true
function c22600022.matfilter(c)
return not (c:IsType(TYPE_LINK) and c:IsType(TYPE_XYZ))
end
......
......@@ -54,6 +54,7 @@ function c24310020.initial_effect(c)
end
-----------------------------------------------1
c24310020.toss_dice=true
function c24310020.cfilter(c,tp)
return c:GetSummonPlayer()==tp and c:IsPreviousLocation(LOCATION_EXTRA) and c:IsFaceup() and c:GetLevel()>1
end
......
......@@ -21,6 +21,7 @@ function c24562485.initial_effect(c)
e2:SetOperation(c24562485.activate)
c:RegisterEffect(e2)
end
c24562485.toss_dice=true
function c24562485.cfilter(c)
return c:IsSetCard(0x9390) and c:IsAbleToRemoveAsCost()
end
......
......@@ -16,6 +16,7 @@ function cm.initial_effect(c)
e1:SetOperation(cm.desop)
c:RegisterEffect(e1)
end
cm.toss_coin=true
function cm.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end
......
......@@ -53,6 +53,7 @@ function c33700075.initial_effect(c)
e6:SetCondition(c33700075.con3)
c:RegisterEffect(e6)
end
c33700075.toss_coin=true
function c33700075.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDiscardable() end
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
......
......@@ -37,6 +37,7 @@ function c33700171.initial_effect(c)
e3:SetOperation(c33700171.op)
c:RegisterEffect(e3)
end
c33700171.toss_coin=true
function c33700171.matfilter(c,syncard)
return c:IsFaceup() and c:IsCanBeSynchroMaterial(syncard)
end
......
......@@ -60,6 +60,7 @@ function c47510004.initial_effect(c)
e7:SetValue(c47510004.efilter)
c:RegisterEffect(e7)
end
c47510004.toss_dice=true
function c47510004.immcon(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(nil,tp,LOCATION_MZONE,0,1,e:GetHandler())
end
......
......@@ -62,6 +62,7 @@ function c47510119.initial_effect(c)
e10:SetOperation(c47510119.penop)
c:RegisterEffect(e10)
end
c47510119.toss_dice=true
function c47510119.bacon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
......
......@@ -55,6 +55,7 @@ function c47510219.initial_effect(c)
e6:SetCode(EFFECT_UPDATE_DEFENSE)
c:RegisterEffect(e6)
end
c47510219.toss_dice=true
function c47510219.splimit(e,c)
return not c:IsAttribute(ATTRIBUTE_EARTH)
end
......
......@@ -42,6 +42,7 @@ function c47530052.initial_effect(c)
e5:SetOperation(c47530052.ffop)
c:RegisterEffect(e5)
end
c47530052.toss_coin=true
function c47530052.sprfilter(c)
return c:IsFaceup() and c:IsRace(RACE_MACHINE) and c:IsReleasable()
end
......
......@@ -48,6 +48,7 @@ function c47530113.initial_effect(c)
e5:SetOperation(c47530113.sumsuc)
c:RegisterEffect(e5)
end
cm.toss_coin=true
function c47530113.sumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_MUSIC,0,aux.Stringid(47530113,0))
end
......
......@@ -11,6 +11,7 @@ function c47590893.initial_effect(c)
e1:SetOperation(c47590893.operation)
c:RegisterEffect(e1)
end
c47590893.toss_dice=true
function c47590893.operation(e,tp,eg,ep,ev,re,r,rp)
local d1,d2=Duel.TossDice(tp,2)
if d1==1 or d2==1 then
......
......@@ -17,6 +17,7 @@ function c53799001.initial_effect(c)
e3:SetOperation(c53799001.operation)
c:RegisterEffect(e3)
end
c53799001.toss_dice=true
function c53799001.activate(e,tp,eg,ep,ev,re,r,rp)
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -49,6 +49,7 @@ function c65000064.initial_effect(c)
e5:SetLabelObject(e4)
c:RegisterEffect(e5)
end
cm.toss_coin=true
function cm.val(e,c)
return c:IsLevelBelow(6)
end
......
......@@ -40,6 +40,7 @@ function c65000065.initial_effect(c)
e5:SetLabelObject(e4)
c:RegisterEffect(e5)
end
cm.toss_coin=true
function cm.rlevel(e,c)
local lv=e:GetHandler():GetLevel()
if c:IsLevelBelow(6) then
......
......@@ -19,6 +19,7 @@ function c65071069.initial_effect(c)
e2:SetOperation(c65071069.desop)
c:RegisterEffect(e2)
end
c65071069.toss_dice=true
function c65071069.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsType(TYPE_MONSTER) and chkc:IsOnField() end
if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
......
......@@ -47,6 +47,7 @@ function c81041030.initial_effect(c)
e6:SetOperation(c81041030.penop)
c:RegisterEffect(e6)
end
c81041030.toss_dice=true
function c81041030.ffilter(c)
return c:IsAttack(1550) and c:IsDefense(1050) and c:IsFusionType(TYPE_PENDULUM) and c:IsFusionType(TYPE_RITUAL)
end
......
......@@ -56,6 +56,7 @@ function c9300329.initial_effect(c)
c:RegisterEffect(e5)
end
c9300329.pendulum_level=4
c9300329.toss_coin=true
function c9300329.mattg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return true end
......
......@@ -30,6 +30,7 @@ function c9310020.initial_effect(c)
c:RegisterEffect(e3)
end
c9310020.setname="MrsDice_Taught"
c9310020.toss_dice=true
function c9310020.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsPublic() end
end
......
......@@ -22,6 +22,7 @@ function c960006.initial_effect(c)
e4:SetOperation(c960006.tdop)
c:RegisterEffect(e4)
end
c960006.toss_dice=true
function c960006.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,500) end
Duel.PayLPCost(tp,500)
......
......@@ -23,6 +23,7 @@ function c960007.initial_effect(c)
e4:SetOperation(c960007.tdop)
c:RegisterEffect(e4)
end
c960007.toss_dice=true
function c960007.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,500) end
Duel.PayLPCost(tp,500)
......
......@@ -33,6 +33,7 @@ function c960012.initial_effect(c)
e8:SetOperation(c960012.sumsuc)
c:RegisterEffect(e8)
end
c960012.toss_dice=true
function c960012.sumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_MUSIC,0,aux.Stringid(960012,0))
end
......
......@@ -23,6 +23,7 @@ function c960019.initial_effect(c)
e4:SetOperation(c960019.tdop)
c:RegisterEffect(e4)
end
c960019.toss_dice=true
function c960019.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,500) end
Duel.PayLPCost(tp,500)
......
......@@ -18,6 +18,7 @@ function c98600002.initial_effect(c)
e1:SetOperation(c98600002.coinop)
c:RegisterEffect(e1)
end
c98600002.toss_coin=true
function c98600002.fscon(e,g,gc,chkfnf)
if g==nil then return true end
if gc then return false end
......
......@@ -52,6 +52,7 @@ function cm.initial_effect(c)
e1:SetOperation(cm.op)
c:RegisterEffect(e1)
end
cm.toss_dice=true
function cm.filter(c,tp)
return c:IsPreviousLocation(LOCATION_DECK+LOCATION_ONFIELD) and c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp)
end
......
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