Commit 0e1a6178 authored by mercury233's avatar mercury233
parents 6b09f8d1 98cd46f6
--鉄獣式強襲機動兵装改“BucephalusII
--鉄獣式強襲機動兵装改“Bucephalus
local s,id,o=GetID()
function s.initial_effect(c)
c:EnableReviveLimit()
......
......@@ -12,8 +12,7 @@ end
function c1005587.filter(c,tp)
return aux.NegateMonsterFilter(c) and c:IsAttackAbove(2000) and c:IsSummonPlayer(tp)
end
function c1005587.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
function c1005587.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c1005587.filter,1,nil,1-tp) end
Duel.SetTargetCard(eg)
local g=eg:Filter(c1005587.filter,nil,1-tp)
......
--Ai-コンタクト
--Aiコンタクト
function c10493654.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
......
--BF-魔風のボレアース
--BF魔風のボレアース
function c10602628.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,c10602628.mfilter,aux.NonTuner(nil),1)
......@@ -37,7 +37,7 @@ end
function c10602628.lvcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c10602628.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c10602628.lvtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e)
and Duel.IsExistingMatchingCard(c10602628.tgfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
......
--ホルスの祝福-ドゥアムテフ
--ホルスの祝福ドゥアムテフ
function c11335209.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
......
......@@ -21,7 +21,7 @@ function c11593137.filter(c)
return c:IsAttribute(0x30) and c:IsAbleToRemove()
end
function c11593137.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()==0 and eg:IsExists(c11593137.filter,1,nil)
return aux.NegateSummonCondition() and eg:IsExists(c11593137.filter,1,nil)
end
function c11593137.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,2000) end
......
--ジ・アライバル・サイバース@イグニスター
--ジ・アライバル・サイバースイグニスター
function c11738489.initial_effect(c)
c:SetUniqueOnField(1,0,11738489)
--link summon
......
......@@ -28,7 +28,7 @@ end
function c12171659.filter(c)
return c:IsCode(56433456) and c:IsAbleToHand()
end
function c12171659.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c12171659.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c12171659.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
......
--DHERO ダイヤモンドガイ
--D-HERO ダイヤモンドガイ
function c13093792.initial_effect(c)
--
local e1=Effect.CreateEffect(c)
......@@ -43,6 +43,7 @@ end
function c13093792.spellcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetTurnID()~=Duel.GetTurnCount()
end
---dynamic target
function c13093792.spelltg(e,tp,eg,ep,ev,re,r,rp,chk)
local ae=e:GetHandler():GetActivateEffect()
local ftg=ae:GetTarget()
......
--EHERO ワイルド・サイクロン
--E-HERO ワイルド・サイクロン
function c13293158.initial_effect(c)
aux.AddCodeList(c,94820406)
--fusion material
......
--EHERO アダスター・ゴールド
--E-HERO アダスター・ゴールド
function c13650422.initial_effect(c)
aux.AddCodeList(c,94820406)
--search
......@@ -26,7 +26,7 @@ end
function c13650422.filter(c)
return (aux.IsCodeListed(c,94820406) or c:IsCode(94820406)) and not c:IsCode(13650422) and c:IsAbleToHand()
end
function c13650422.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c13650422.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c13650422.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
......
......@@ -45,7 +45,7 @@ end
function c14536035.filter(c)
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsAbleToGrave()
end
function c14536035.sgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c14536035.sgtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(c14536035.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
......
--つの武器を持つハンター
--7つの武器を持つハンター
function c1525329.initial_effect(c)
--arm
local e1=Effect.CreateEffect(c)
......
......@@ -46,7 +46,7 @@ function c15327215.filter(c,mc)
return c:IsLevelBelow(4) and c:IsSetCard(0x3d) and c:IsAbleToRemoveAsCost()
and not (c:IsLevel(mc:GetLevel()) and c:IsAttribute(mc:GetAttribute()) and c:IsAttack(mc:GetAttack()) and c:IsDefense(mc:GetDefense()))
end
function c15327215.cost(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c15327215.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c15327215.filter,tp,LOCATION_GRAVE,0,1,nil,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c15327215.filter,tp,LOCATION_GRAVE,0,1,1,nil,e:GetHandler())
......
--沈黙狼-カルーポ
--沈黙狼カルーポ
local s,id,o=GetID()
function s.initial_effect(c)
--Equip Fadown
......
......@@ -11,7 +11,7 @@ function c1637760.initial_effect(c)
c:RegisterEffect(e1)
end
function c1637760.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()==0 and Duel.GetTurnPlayer()~=tp and rp==1-tp
return aux.NegateSummonCondition() and Duel.GetTurnPlayer()~=tp and rp==1-tp
and (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2)
end
function c1637760.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
--DHERO ディナイアルガイ
--D-HERO ディナイアルガイ
function c16605586.initial_effect(c)
--to deck top
local e1=Effect.CreateEffect(c)
......
......@@ -41,6 +41,7 @@ function c16643334.initial_effect(c)
e4:SetCategory(CATEGORY_SPECIAL_SUMMON)
e4:SetType(EFFECT_TYPE_QUICK_O)
e4:SetCode(EVENT_FREE_CHAIN)
e4:SetProperty(EFFECT_FLAG_CARD_TARGET)
e4:SetCountLimit(1)
e4:SetRange(LOCATION_MZONE)
e4:SetHintTiming(0,TIMING_BATTLE_START+TIMING_END_PHASE)
......
--DHERO ドグマガイ
--D-HERO ドグマガイ
function c17132130.initial_effect(c)
--cannot special summon
local e1=Effect.CreateEffect(c)
......
......@@ -19,7 +19,7 @@ end
function c17393207.filter(c)
return c:IsCode(47355498) and c:IsAbleToHand()
end
function c17393207.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c17393207.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c17393207.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
......
--Re:EX
--ReEX
function c18000338.initial_effect(c)
--increase atk/def
local e1=Effect.CreateEffect(c)
......
--電脳堺門-玄武
--電脳堺門玄武
function c18249921.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
......
--Uk-P.U.N.K.カープ・ライジング
--UkP.U.N.K.カープ・ライジング
function c18313046.initial_effect(c)
--fusion material
c:EnableReviveLimit()
......
--H·C モーニング・スター
--HC モーニング・スター
local s,id,o=GetID()
function c18548966.initial_effect(c)
--spsummon
......
......@@ -32,7 +32,7 @@ function c18859369.tgfilter2(c,attr)
return c:IsAbleToGrave() and c:IsAttribute(ATTRIBUTE_DARK+ATTRIBUTE_LIGHT)
and not c:IsAttribute(attr)
end
function c18859369.sgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c18859369.sgtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then
if e:GetLabel()~=100 then return false end
......
......@@ -28,7 +28,7 @@ end
function c19280589.tkcon1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_MZONE)
end
function c19280589.tktg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c19280589.tktg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,19280590,0,TYPES_TOKEN_MONSTER,0,0,1,RACE_FAIRY,ATTRIBUTE_LIGHT) end
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
......
--EHERO ライトニング・ゴーレム
--E-HERO ライトニング・ゴーレム
function c21947653.initial_effect(c)
aux.AddCodeList(c,94820406)
--fusion material
......
......@@ -37,7 +37,7 @@ function c2204038.ptcon(e,tp,eg,ep,ev,re,r,rp)
local at=Duel.GetAttacker()
return at and at:IsControler(1-tp) and at:IsRelateToBattle()
end
function c2204038.pttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c2204038.pttg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:GetDefense()>=1000 end
end
......
......@@ -21,6 +21,7 @@ function c22056710.initial_effect(c)
e3:SetDescription(aux.Stringid(22056710,0))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetCountLimit(1)
e3:SetRange(LOCATION_MZONE)
e3:SetTarget(c22056710.sptg)
......@@ -51,6 +52,7 @@ function c22056710.spfilter(c,e,tp,lv)
return clv>0 and clv<lv and c:IsRace(RACE_ZOMBIE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c22056710.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c22056710.cfilter,tp,LOCATION_HAND,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
......
--EHERO インフェルノ・ウィング
--E-HERO インフェルノ・ウィング
function c22160245.initial_effect(c)
aux.AddCodeList(c,94820406)
--fusion material
......
......@@ -16,7 +16,7 @@ function c23234094.filter(c,e,tp)
return c:IsLevelBelow(6) and c:IsRace(RACE_DINOSAUR) and c:IsAttribute(ATTRIBUTE_FIRE)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c23234094.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c23234094.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c23234094.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
......
--H-C ヤールングレイプ
--HC ヤールングレイプ
local s,id,o=GetID()
function c23848752.initial_effect(c)
--xyz summon
......
--海竜神-リバイアサン
--海竜神リバイアサン
function c23931679.initial_effect(c)
aux.AddCodeList(c,22702055)
--to hand
......
......@@ -9,7 +9,7 @@ function c24317029.initial_effect(c)
e1:SetOperation(c24317029.operation)
c:RegisterEffect(e1)
end
function c24317029.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c24317029.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end
......
......@@ -75,7 +75,7 @@ function c24731391.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsReason(REASON_EFFECT) and rp==1-tp and c:IsPreviousControler(tp)
end
function c24731391.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c24731391.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c24731391.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
......
......@@ -71,6 +71,7 @@ end
function c24857466.spfilter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
---dynamic target
function c24857466.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then
if ev==TYPE_TRAP then
......
......@@ -33,7 +33,7 @@ function c25538345.filter(c)
return not c:IsCode(25538345) and ((c:IsSetCard(0x10db) and c:IsType(TYPE_MONSTER)) or (c:IsSetCard(0xdb) and c:IsType(TYPE_SPELL+TYPE_TRAP)))
and c:IsAbleToGrave()
end
function c25538345.sgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c25538345.sgtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(c25538345.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
......
......@@ -16,6 +16,7 @@ function c25669282.initial_effect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_ATTACK_ANNOUNCE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetRange(LOCATION_GRAVE)
e2:SetCondition(c25669282.spcon)
e2:SetCost(aux.bfgcost)
......
......@@ -5,7 +5,7 @@ function c2572890.initial_effect(c)
e1:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_SPSUMMON)
e1:SetCondition(c2572890.condition1)
e1:SetCondition(aux.NegateSummonCondition)
e1:SetCost(c2572890.cost)
e1:SetTarget(c2572890.target1)
e1:SetOperation(c2572890.activate1)
......@@ -31,9 +31,6 @@ function c2572890.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c2572890.cfilter,1,1,nil)
Duel.Release(g,REASON_COST)
end
function c2572890.condition1(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()==0
end
function c2572890.target1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DISABLE_SUMMON,eg,eg:GetCount(),0,0)
......
--ALERT!
--ALERT
local s,id,o=GetID()
function s.initial_effect(c)
--Activate
......
......@@ -42,7 +42,7 @@ end
function c26577155.thfilter(c)
return c:IsCode(62265044) and c:IsAbleToHand()
end
function c26577155.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c26577155.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c26577155.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
......
--DHERO ダークエンジェル
--D-HERO ダークエンジェル
function c26964762.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
......
......@@ -38,7 +38,7 @@ end
function c28240337.spfilter(c,e,tp)
return c:IsRace(RACE_ZOMBIE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c28240337.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c28240337.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c28240337.spfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
......
......@@ -70,12 +70,9 @@ function c28292031.target(event)
return Duel.IsExistingMatchingCard(c28292031.filter,tp,LOCATION_GRAVE,0,1,nil,event)
end
e:SetLabel(0)
local _GetCurrentChain=Duel.GetCurrentChain
Duel.GetCurrentChain=function() return _GetCurrentChain()-1 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c28292031.filter,tp,LOCATION_GRAVE,0,1,1,nil,event)
local te,ceg,cep,cev,cre,cr,crp=g:GetFirst():CheckActivateEffect(false,true,true)
Duel.GetCurrentChain=_GetCurrentChain
Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2))
Duel.Remove(g,POS_FACEUP,REASON_COST)
e:SetProperty(te:GetProperty())
......
--DHERO ダブルガイ
--D-HERO ダブルガイ
function c28355718.initial_effect(c)
--cannot special summon
local e1=Effect.CreateEffect(c)
......
--Into the VRAINS!
--Into the VRAINS
function c28827503.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
......
......@@ -35,7 +35,7 @@ end
function c29596581.filter(c)
return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsSetCard(0x11c) and not c:IsCode(29596581) and c:IsAbleToHand()
end
function c29596581.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c29596581.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c29596581.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE+LOCATION_REMOVED)
end
......
......@@ -32,7 +32,7 @@ end
function c29888389.filter(c)
return c:IsSetCard(0x3a) and c:GetType()==TYPE_SPELL+TYPE_RITUAL and c:IsAbleToHand()
end
function c29888389.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c29888389.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c29888389.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
......
--クリック&エコー
--クリックエコー
local s,id,o=GetID()
function s.initial_effect(c)
--cannot be material
......
......@@ -24,7 +24,7 @@ function c30888983.filter(c)
return Duel.IsExistingMatchingCard(c30888983.cfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil,c:GetRace())
end
function c30888983.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()==0 and eg:IsExists(c30888983.filter,1,nil)
return aux.NegateSummonCondition() and eg:IsExists(c30888983.filter,1,nil)
end
function c30888983.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,1000) end
......
--ライディング・デュエル!アクセラレーション!
--ライディング・デュエル!アクセラレーション!
function c31006879.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
......
......@@ -10,7 +10,7 @@ function c31111109.initial_effect(c)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetTarget(c31111109.copytg)
e2:SetCost(c31111109.copycost)
e2:SetOperation(c31111109.copyop)
c:RegisterEffect(e2)
--spsummon condition
......@@ -35,26 +35,24 @@ function c31111109.ffilter3(c,fc)
return c:IsFusionSetCard(0x8)
end
function c31111109.filter(c)
return c:IsSetCard(0x9,0x1f,0x8) and c:IsType(TYPE_MONSTER)
and not c:IsForbidden() and c:IsAbleToRemove()
return c:IsSetCard(0x9,0x1f,0x8) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
end
function c31111109.copytg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c31111109.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c31111109.filter,tp,LOCATION_GRAVE,0,1,nil) end
function c31111109.copycost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c31111109.filter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,c31111109.filter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,tp,LOCATION_GRAVE)
local g=Duel.SelectMatchingCard(tp,c31111109.filter,tp,LOCATION_GRAVE,0,1,1,nil)
local tc=g:GetFirst()
Duel.Remove(tc,POS_FACEUP,REASON_COST)
local code=tc:GetOriginalCode()
Duel.SetTargetParam(code)
end
function c31111109.copyop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and c:IsFaceup() and tc:IsRelateToEffect(e) then
if Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)~=1 then return end
local code=tc:GetOriginalCode()
local code=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM)
if code~=0 and c:IsRelateToEffect(e) and c:IsFaceup() then
local cid=c:CopyEffect(code,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,1)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_COPY_INHERIT)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(500)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
......@@ -63,7 +61,7 @@ function c31111109.copyop(e,tp,eg,ep,ev,re,r,rp)
e2:SetDescription(aux.Stringid(31111109,1))
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_PHASE+PHASE_END)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetCountLimit(1)
e2:SetRange(LOCATION_MZONE)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
......
--ZS-希望賢者
--ZS希望賢者
function c31123642.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,4,2)
......
......@@ -39,7 +39,7 @@ end
function c31600513.tkcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c31600513.tktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c31600513.tktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,31600514,0,TYPES_TOKEN_MONSTER,500,500,1,RACE_INSECT,ATTRIBUTE_WIND) end
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
......
......@@ -7,7 +7,7 @@ function s.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_SUMMON)
e1:SetCountLimit(1,id)
e1:SetCondition(s.descon)
e1:SetCondition(aux.NegateSummonCondition)
e1:SetTarget(s.destg)
e1:SetOperation(s.desop)
c:RegisterEffect(e1)
......@@ -25,9 +25,6 @@ function s.initial_effect(c)
e3:SetOperation(s.repop)
c:RegisterEffect(e3)
end
function s.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()==0
end
function s.tgfilter(c)
return c:IsRace(RACE_FIEND) and c:IsDiscardable(REASON_EFFECT)
end
......
......@@ -20,7 +20,7 @@ end
function c31786629.filter(c)
return c:IsCode(31786629) and c:IsAbleToHand()
end
function c31786629.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c31786629.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c31786629.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
......
......@@ -12,8 +12,19 @@ function c3204467.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_BATTLE_DAMAGE)
e2:SetCode(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetOperation(c3204467.regop)
c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(3204467,0))
e3:SetCategory(CATEGORY_DESTROY)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e3:SetCode(EVENT_DAMAGE_STEP_END)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetCondition(c3204467.descon)
e3:SetTarget(c3204467.destg)
e3:SetOperation(c3204467.desop)
c:RegisterEffect(e3)
end
function c3204467.vfilter(c)
return c:IsSetCard(0x3e) and c:IsRace(RACE_REPTILE)
......@@ -23,19 +34,13 @@ function c3204467.defval(e,c)
end
function c3204467.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsDefensePos() and c==Duel.GetAttackTarget() then
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(3204467,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_DAMAGE_STEP_END)
e1:SetCondition(aux.dsercon)
e1:SetTarget(c3204467.destg)
e1:SetOperation(c3204467.desop)
e1:SetReset(RESET_PHASE+PHASE_DAMAGE)
c:RegisterEffect(e1)
if c==Duel.GetAttackTarget() then
c:RegisterFlagEffect(3204467,RESET_PHASE+PHASE_DAMAGE,0,1)
end
end
function c3204467.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(3204467) and aux.dsercon(e,tp,eg,ep,ev,re,r,rp)
end
function c3204467.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
......
......@@ -12,8 +12,7 @@ end
function c32120116.filter(c,tp)
return c:IsSummonPlayer(tp)
end
function c32120116.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
function c32120116.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c32120116.filter,1,nil,1-tp) end
Duel.SetTargetCard(eg)
local g=eg:Filter(c32120116.filter,nil,1-tp)
......
......@@ -5,7 +5,7 @@ function c32233746.initial_effect(c)
e1:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_SUMMON)
e1:SetCondition(c32233746.condition)
e1:SetCondition(aux.NegateSummonCondition)
e1:SetCost(c32233746.cost)
e1:SetTarget(c32233746.target)
e1:SetOperation(c32233746.activate)
......@@ -17,9 +17,6 @@ function c32233746.initial_effect(c)
e3:SetCode(EVENT_SPSUMMON)
c:RegisterEffect(e3)
end
function c32233746.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()==0
end
function c32233746.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,nil,0x38) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,1,nil,0x38)
......
--ZS-双頭龍賢者
--ZS双頭龍賢者
function c32281491.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
......
......@@ -53,7 +53,7 @@ function c33438666.spfilter(c,e,tp,rc,tid)
return c:IsReason(REASON_BATTLE) and c:GetReasonCard()==rc and c:GetTurnID()==tid
and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c33438666.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c33438666.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c33438666.spfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,e,tp,e:GetHandler(),Duel.GetTurnCount()) end
local g=Duel.GetMatchingGroup(c33438666.spfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil,e,tp,e:GetHandler(),Duel.GetTurnCount())
......
......@@ -46,7 +46,7 @@ function c3370104.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsLocation(LOCATION_GRAVE) and c:IsReason(REASON_BATTLE) and c:IsPreviousPosition(POS_FACEUP)
end
function c3370104.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c3370104.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1)
......
......@@ -20,7 +20,7 @@ end
function c3431737.filter(c)
return c:IsCode(80280737) and c:IsAbleToHand()
end
function c3431737.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c3431737.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c3431737.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
......
--N·As·H Knight
--N・As・H Knight
function c34876719.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,5,2)
......
......@@ -37,7 +37,7 @@ function c34904525.thfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
and aux.IsCodeListed(c,25955164) and aux.IsCodeListed(c,62340868) and aux.IsCodeListed(c,98434877)
end
function c34904525.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c34904525.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c34904525.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
......
......@@ -14,7 +14,7 @@ c3493058.toss_dice=true
function c3493058.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c3493058.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c3493058.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c3493058.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler()) end
Duel.SetOperationInfo(0,CATEGORY_DICE,nil,0,tp,1)
end
......
......@@ -51,7 +51,7 @@ end
function c35815783.thfilter(c)
return c:IsCode(99426088) and c:IsAbleToHand()
end
function c35815783.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c35815783.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c35815783.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_HAND)
......
--垂氷の魔妖-雪女
--垂氷の魔妖雪女
function c36114945.initial_effect(c)
c:SetUniqueOnField(1,0,36114945)
--link summon
......
--巌帯の美技-ゼノギタム
--巌帯の美技ゼノギタム
function c36187051.initial_effect(c)
--to hand
local e1=Effect.CreateEffect(c)
......
--DHERO ドレッドサーヴァント
--D-HERO ドレッドサーヴァント
function c36625827.initial_effect(c)
--summon success
local e1=Effect.CreateEffect(c)
......
--R-ACEタービュランス
--RACEタービュランス
local s,id,o=GetID()
function s.initial_effect(c)
--Special Summon (from hand : itself)
......
--R-ACEハイドラント
--RACEハイドラント
local s,id,o=GetID()
function s.initial_effect(c)
--cannot be battle and effect target
......
--DHERO ダイナマイトガイ
--D-HERO ダイナマイトガイ
function c37780349.initial_effect(c)
--Damage to 0
local e1=Effect.CreateEffect(c)
......
......@@ -8,6 +8,7 @@ function c3792766.initial_effect(c)
e1:SetCategory(CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCondition(c3792766.thcon)
e1:SetTarget(c3792766.thtg)
e1:SetOperation(c3792766.thop)
......
--R-ACEインパルス
--RACEインパルス
local s,id,o=GetID()
function s.initial_effect(c)
--cannot activate
......
......@@ -25,7 +25,7 @@ end
function c38723936.filter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
end
function c38723936.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c38723936.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingTarget(c38723936.filter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,nil,1,tp,0)
end
......
......@@ -24,6 +24,7 @@ function c38844957.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1)
return true
end
---dynamic target
function c38844957.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then
local te=e:GetLabelObject()
......
--ギガンテック・ファイター/バスター
--ギガンテック・ファイターバスター
function c38898779.initial_effect(c)
aux.AddCodeList(c,80280737)
c:EnableReviveLimit()
......
......@@ -40,7 +40,7 @@ end
function c39512984.filter(c)
return c:IsLevelBelow(7) and c:IsSetCard(0x1047) and c:IsType(TYPE_FUSION) and c:IsAbleToRemoveAsCost()
end
function c39512984.cost(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c39512984.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c39512984.filter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c39512984.filter,tp,LOCATION_GRAVE,0,1,1,nil)
......
--DHERO ディパーテッドガイ
--D-HERO ディパーテッドガイ
function c39829561.initial_effect(c)
--Special Summon
local e1=Effect.CreateEffect(c)
......
--DHERO ドレッドガイ
--D-HERO ドレッドガイ
function c40591390.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(40591390,0))
......
......@@ -15,7 +15,7 @@ function c40605147.initial_effect(c)
e2:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_ACTIVATE)
e2:SetCode(EVENT_SPSUMMON)
e2:SetCondition(c40605147.condition1)
e2:SetCondition(aux.NegateSummonCondition)
e2:SetCost(c40605147.cost)
e2:SetTarget(c40605147.target1)
e2:SetOperation(c40605147.activate1)
......@@ -40,9 +40,6 @@ function c40605147.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(eg,REASON_EFFECT)
end
end
function c40605147.condition1(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()==0
end
function c40605147.target1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DISABLE_SUMMON,eg,eg:GetCount(),0,0)
......
--BM-4ボムスパイダー
--BM4ボムスパイダー
function c40634253.initial_effect(c)
--Destroy
local e1=Effect.CreateEffect(c)
......
......@@ -36,7 +36,7 @@ function c40867519.initial_effect(c)
e5:SetTarget(c40867519.distarget)
c:RegisterEffect(e5)
end
function c40867519.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c40867519.postg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAttackPos() end
Duel.SetOperationInfo(0,CATEGORY_POSITION,e:GetHandler(),1,0,0)
end
......
......@@ -22,7 +22,7 @@ function c41090784.initial_effect(c)
e3:SetValue(c41090784.indval)
c:RegisterEffect(e3)
end
function c41090784.potg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c41090784.potg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAttackPos() end
Duel.SetOperationInfo(0,CATEGORY_POSITION,e:GetHandler(),1,0,0)
end
......
......@@ -5,7 +5,7 @@ function c41420027.initial_effect(c)
e1:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_SUMMON)
e1:SetCondition(c41420027.condition1)
e1:SetCondition(aux.NegateSummonCondition)
e1:SetCost(c41420027.cost1)
e1:SetTarget(c41420027.target1)
e1:SetOperation(c41420027.activate1)
......@@ -27,9 +27,6 @@ function c41420027.initial_effect(c)
e4:SetOperation(c41420027.activate2)
c:RegisterEffect(e4)
end
function c41420027.condition1(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()==0
end
function c41420027.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2))
......
......@@ -51,7 +51,7 @@ end
function c41562624.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsRace(RACE_ZOMBIE)
end
function c41562624.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c41562624.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,tp,1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
......
--DHERO デビルガイ
--D-HERO デビルガイ
function c41613948.initial_effect(c)
--remove
local e1=Effect.CreateEffect(c)
......
......@@ -17,7 +17,7 @@ end
function c41705642.filter(c,e,tp)
return c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c41705642.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c41705642.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c41705642.filter,tp,LOCATION_GRAVE+LOCATION_HAND,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE+LOCATION_HAND)
......
......@@ -35,7 +35,7 @@ function c42256406.initial_effect(c)
e5:SetOperation(c42256406.defop)
c:RegisterEffect(e5)
end
function c42256406.potg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c42256406.potg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAttackPos() end
Duel.SetOperationInfo(0,CATEGORY_POSITION,e:GetHandler(),1,0,0)
end
......
......@@ -35,7 +35,7 @@ function c423585.initial_effect(c)
e5:SetCode(EFFECT_UNRELEASABLE_NONSUM)
c:RegisterEffect(e5)
end
function c423585.potg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c423585.potg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_POSITION,e:GetHandler(),1,0,0)
end
......
......@@ -5,7 +5,7 @@ function c43340443.initial_effect(c)
e1:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_SUMMON)
e1:SetCondition(c43340443.condition)
e1:SetCondition(aux.NegateSummonCondition)
e1:SetTarget(c43340443.target)
e1:SetOperation(c43340443.activate)
c:RegisterEffect(e1)
......@@ -13,9 +13,6 @@ function c43340443.initial_effect(c)
e2:SetCode(EVENT_FLIP_SUMMON)
c:RegisterEffect(e2)
end
function c43340443.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()==0
end
function c43340443.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DISABLE_SUMMON,eg,1,0,0)
......
--被検体ミュートリアGB-88
--被検体ミュートリアGB-88
function c43709490.initial_effect(c)
--self spsummon
local e1=Effect.CreateEffect(c)
......
......@@ -32,7 +32,7 @@ function c43739056.ctcon(e,tp,eg,ep,ev,re,r,rp)
local p=e:GetHandler():GetOwner()
return p==Duel.GetTurnPlayer() and (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2)
end
function c43739056.cttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c43739056.cttg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsControlerCanBeChanged() end
Duel.SetOperationInfo(0,CATEGORY_CONTROL,e:GetHandler(),1,0,0)
end
......
......@@ -19,7 +19,7 @@ end
function c43797906.filter(c)
return c:GetOriginalCode()==295517 and c:IsAbleToHand()
end
function c43797906.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c43797906.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c43797906.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
......
......@@ -65,7 +65,7 @@ end
function c44308317.tkcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c44308317.tkfilter,tp,LOCATION_MZONE,0,1,nil)
end
function c44308317.tktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c44308317.tktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,44308318,0,TYPES_TOKEN_MONSTER,0,0,1,RACE_AQUA,ATTRIBUTE_WATER) end
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
......
......@@ -37,7 +37,7 @@ end
function c44364207.filter(c)
return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsLevel(4) and c:IsAbleToHand()
end
function c44364207.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c44364207.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c44364207.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
......
--Uk-P.U.N.K.アメイジング・ドラゴン
--UkP.U.N.K.アメイジング・ドラゴン
function c44708154.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
......
......@@ -21,7 +21,7 @@ function c44901281.filter(c)
end
function c44901281.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c44901281.filter,tp,LOCATION_MZONE,0,1,nil)
and Duel.GetCurrentChain()==0
and aux.NegateSummonCondition()
end
function c44901281.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -14,8 +14,9 @@ function c45072394.initial_effect(c)
e2:SetDescription(aux.Stringid(45072394,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetRange(LOCATION_SZONE)
e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetRange(LOCATION_SZONE)
e2:SetCountLimit(1)
e2:SetCondition(c45072394.spcon)
e2:SetTarget(c45072394.sptg)
......
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.
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