Commit 1fdc6bc9 authored by VanillaSalt's avatar VanillaSalt

update

parent c31eb623
--地縛神 Aslla piscu
function c10875327.initial_effect(c)
c:SetUniqueOnField(1,1,10000000,LOCATION_MZONE)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x21),LOCATION_MZONE)
--
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
......
--地縛神 Uru
function c15187079.initial_effect(c)
c:SetUniqueOnField(1,1,10000000,LOCATION_MZONE)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x21),LOCATION_MZONE)
--
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
......
--Sin サイバー・エンド・ドラゴン
function c1710476.initial_effect(c)
c:EnableReviveLimit()
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x23),LOCATION_MZONE)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......@@ -10,29 +11,6 @@ function c1710476.initial_effect(c)
e1:SetCondition(c1710476.spcon)
e1:SetOperation(c1710476.spop)
c:RegisterEffect(e1)
--only 1 can exists
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
e2:SetCondition(c1710476.excon)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetRange(LOCATION_MZONE)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetTargetRange(1,1)
e4:SetCode(EFFECT_CANNOT_SUMMON)
e4:SetTarget(c1710476.sumlimit)
c:RegisterEffect(e4)
local e5=e4:Clone()
e5:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
c:RegisterEffect(e5)
local e6=e4:Clone()
e6:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
c:RegisterEffect(e6)
--selfdes
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_SINGLE)
......@@ -41,13 +19,6 @@ function c1710476.initial_effect(c)
e7:SetCode(EFFECT_SELF_DESTROY)
e7:SetCondition(c1710476.descon)
c:RegisterEffect(e7)
local e8=Effect.CreateEffect(c)
e8:SetType(EFFECT_TYPE_FIELD)
e8:SetCode(EFFECT_SELF_DESTROY)
e8:SetRange(LOCATION_MZONE)
e8:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e8:SetTarget(c1710476.destarget)
c:RegisterEffect(e8)
--cannot announce
local e8=Effect.CreateEffect(c)
e8:SetType(EFFECT_TYPE_FIELD)
......@@ -64,15 +35,6 @@ function c1710476.initial_effect(c)
e9:SetValue(aux.FALSE)
c:RegisterEffect(e9)
end
function c1710476.sumlimit(e,c)
return c:IsSetCard(0x23)
end
function c1710476.exfilter(c)
return c:IsFaceup() and c:IsSetCard(0x23)
end
function c1710476.excon(e)
return Duel.IsExistingMatchingCard(c1710476.exfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil)
end
function c1710476.spfilter(c)
return c:IsCode(1546123) and c:IsAbleToRemoveAsCost()
end
......@@ -80,7 +42,6 @@ function c1710476.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c1710476.spfilter,c:GetControler(),LOCATION_EXTRA,0,1,nil)
and not Duel.IsExistingMatchingCard(c1710476.exfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil)
end
function c1710476.spop(e,tp,eg,ep,ev,re,r,rp,c)
local tc=Duel.GetFirstMatchingCard(c1710476.spfilter,tp,LOCATION_EXTRA,0,nil)
......@@ -91,9 +52,6 @@ function c1710476.descon(e)
local f2=Duel.GetFieldCard(1,LOCATION_SZONE,5)
return (f1==nil or f1:IsFacedown()) and (f2==nil or f2:IsFacedown())
end
function c1710476.destarget(e,c)
return c:IsSetCard(0x23) and c:GetFieldID()>e:GetHandler():GetFieldID()
end
function c1710476.antarget(e,c)
return c~=e:GetHandler()
end
--多次元壊獣ラディアン
function c28674152.initial_effect(c)
c:SetUniqueOnField(1,0,20000000,LOCATION_MZONE)
c:SetUniqueOnField(1,0,aux.FilterBoolFunction(Card.IsSetCard,0xd3),LOCATION_MZONE)
--special summon rule
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......
--粘糸壊獣クモグス
function c29726552.initial_effect(c)
c:SetUniqueOnField(1,0,20000000,LOCATION_MZONE)
c:SetUniqueOnField(1,0,aux.FilterBoolFunction(Card.IsSetCard,0xd3),LOCATION_MZONE)
--special summon rule
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......
--地縛神 Cusillu
function c33537328.initial_effect(c)
c:SetUniqueOnField(1,1,10000000,LOCATION_MZONE)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x21),LOCATION_MZONE)
--
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
......
--Sin スターダスト・ドラゴン
function c36521459.initial_effect(c)
c:EnableReviveLimit()
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x23),LOCATION_MZONE)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......@@ -10,29 +11,6 @@ function c36521459.initial_effect(c)
e1:SetCondition(c36521459.spcon)
e1:SetOperation(c36521459.spop)
c:RegisterEffect(e1)
--only 1 can exists
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
e2:SetCondition(c36521459.excon)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetRange(LOCATION_MZONE)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetTargetRange(1,1)
e4:SetCode(EFFECT_CANNOT_SUMMON)
e4:SetTarget(c36521459.sumlimit)
c:RegisterEffect(e4)
local e5=e4:Clone()
e5:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
c:RegisterEffect(e5)
local e6=e4:Clone()
e6:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
c:RegisterEffect(e6)
--selfdes
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_SINGLE)
......@@ -41,13 +19,6 @@ function c36521459.initial_effect(c)
e7:SetCode(EFFECT_SELF_DESTROY)
e7:SetCondition(c36521459.descon)
c:RegisterEffect(e7)
local e8=Effect.CreateEffect(c)
e8:SetType(EFFECT_TYPE_FIELD)
e8:SetCode(EFFECT_SELF_DESTROY)
e8:SetRange(LOCATION_MZONE)
e8:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e8:SetTarget(c36521459.destarget)
c:RegisterEffect(e8)
--cannot announce
local e8=Effect.CreateEffect(c)
e8:SetType(EFFECT_TYPE_FIELD)
......@@ -73,18 +44,9 @@ function c36521459.initial_effect(c)
ea:SetValue(aux.FALSE)
c:RegisterEffect(ea)
end
function c36521459.sumlimit(e,c)
return c:IsSetCard(0x23)
end
function c36521459.indes(e,c)
return c:IsFaceup() and c:GetSequence()==5
end
function c36521459.exfilter(c)
return c:IsFaceup() and c:IsSetCard(0x23)
end
function c36521459.excon(e)
return Duel.IsExistingMatchingCard(c36521459.exfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil)
end
function c36521459.spfilter(c)
return c:IsCode(44508094) and c:IsAbleToRemoveAsCost()
end
......@@ -92,7 +54,6 @@ function c36521459.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c36521459.spfilter,c:GetControler(),LOCATION_EXTRA,0,1,nil)
and not Duel.IsExistingMatchingCard(c36521459.exfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil)
end
function c36521459.spop(e,tp,eg,ep,ev,re,r,rp,c)
local tc=Duel.GetFirstMatchingCard(c36521459.spfilter,tp,LOCATION_EXTRA,0,nil)
......@@ -103,9 +64,6 @@ function c36521459.descon(e)
local f2=Duel.GetFieldCard(1,LOCATION_SZONE,5)
return (f1==nil or f1:IsFacedown()) and (f2==nil or f2:IsFacedown())
end
function c36521459.destarget(e,c)
return c:IsSetCard(0x23) and c:GetFieldID()>e:GetHandler():GetFieldID()
end
function c36521459.antarget(e,c)
return c~=e:GetHandler()
end
--怪粉壊獣ガダーラ
function c36956512.initial_effect(c)
c:SetUniqueOnField(1,0,20000000,LOCATION_MZONE)
c:SetUniqueOnField(1,0,aux.FilterBoolFunction(Card.IsSetCard,0xd3),LOCATION_MZONE)
--special summon rule
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......
--Sin トゥルース・ドラゴン
function c37115575.initial_effect(c)
c:EnableReviveLimit()
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x23),LOCATION_MZONE)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(37115575,0))
......@@ -14,29 +15,6 @@ function c37115575.initial_effect(c)
e1:SetTarget(c37115575.sptg)
e1:SetOperation(c37115575.spop)
c:RegisterEffect(e1)
--only 1 can exists
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
e2:SetCondition(c37115575.excon)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetRange(LOCATION_MZONE)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetTargetRange(1,1)
e4:SetCode(EFFECT_CANNOT_SUMMON)
e4:SetTarget(c37115575.sumlimit)
c:RegisterEffect(e4)
local e5=e4:Clone()
e5:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
c:RegisterEffect(e5)
local e6=e4:Clone()
e6:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
c:RegisterEffect(e6)
--selfdes
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_SINGLE)
......@@ -45,13 +23,6 @@ function c37115575.initial_effect(c)
e7:SetCode(EFFECT_SELF_DESTROY)
e7:SetCondition(c37115575.descon)
c:RegisterEffect(e7)
local e8=Effect.CreateEffect(c)
e8:SetType(EFFECT_TYPE_FIELD)
e8:SetCode(EFFECT_SELF_DESTROY)
e8:SetRange(LOCATION_MZONE)
e8:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e8:SetTarget(c37115575.destarget)
c:RegisterEffect(e8)
--spson
local e8=Effect.CreateEffect(c)
e8:SetType(EFFECT_TYPE_SINGLE)
......@@ -70,15 +41,6 @@ function c37115575.initial_effect(c)
e9:SetOperation(c37115575.deop)
c:RegisterEffect(e9)
end
function c37115575.sumlimit(e,c)
return c:IsSetCard(0x23)
end
function c37115575.exfilter(c)
return c:IsFaceup() and c:IsSetCard(0x23)
end
function c37115575.excon(e)
return Duel.IsExistingMatchingCard(c37115575.exfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil)
end
function c37115575.cfilter(c,tp)
return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP)
and c:IsPreviousSetCard(0x23) and c:GetPreviousCodeOnField()~=37115575 and not c:IsReason(REASON_RULE)
......@@ -110,9 +72,6 @@ function c37115575.descon(e)
local f2=Duel.GetFieldCard(1,LOCATION_SZONE,5)
return (f1==nil or f1:IsFacedown()) and (f2==nil or f2:IsFacedown())
end
function c37115575.destarget(e,c)
return c:IsSetCard(0x23) and c:GetFieldID()>e:GetHandler():GetFieldID()
end
function c37115575.decon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsRelateToBattle() and c:GetBattleTarget():IsType(TYPE_MONSTER)
......
--地縛神 Wiraqocha Rasca
function c41181774.initial_effect(c)
c:SetUniqueOnField(1,1,10000000,LOCATION_MZONE)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x21),LOCATION_MZONE)
--
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
......
--地縛神 Ccapac Apu
function c46263076.initial_effect(c)
c:SetUniqueOnField(1,1,10000000,LOCATION_MZONE)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x21),LOCATION_MZONE)
--
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
......
--雷撃壊獣サンダー・ザ・キング
function c48770333.initial_effect(c)
c:SetUniqueOnField(1,0,20000000,LOCATION_MZONE)
c:SetUniqueOnField(1,0,aux.FilterBoolFunction(Card.IsSetCard,0xd3),LOCATION_MZONE)
--special summon rule
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......
--海亀壊獣ガメシエル
function c55063751.initial_effect(c)
c:SetUniqueOnField(1,0,20000000,LOCATION_MZONE)
c:SetUniqueOnField(1,0,aux.FilterBoolFunction(Card.IsSetCard,0xd3),LOCATION_MZONE)
--special summon rule
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......
--Sin 真紅眼の黒竜
function c55343236.initial_effect(c)
c:EnableReviveLimit()
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x23),LOCATION_MZONE)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......@@ -10,29 +11,6 @@ function c55343236.initial_effect(c)
e1:SetCondition(c55343236.spcon)
e1:SetOperation(c55343236.spop)
c:RegisterEffect(e1)
--only 1 can exists
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
e2:SetCondition(c55343236.excon)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetRange(LOCATION_MZONE)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetTargetRange(1,1)
e4:SetCode(EFFECT_CANNOT_SUMMON)
e4:SetTarget(c55343236.sumlimit)
c:RegisterEffect(e4)
local e5=e4:Clone()
e5:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
c:RegisterEffect(e5)
local e6=e4:Clone()
e6:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
c:RegisterEffect(e6)
--selfdes
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_SINGLE)
......@@ -41,13 +19,6 @@ function c55343236.initial_effect(c)
e7:SetCode(EFFECT_SELF_DESTROY)
e7:SetCondition(c55343236.descon)
c:RegisterEffect(e7)
local e8=Effect.CreateEffect(c)
e8:SetType(EFFECT_TYPE_FIELD)
e8:SetCode(EFFECT_SELF_DESTROY)
e8:SetRange(LOCATION_MZONE)
e8:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e8:SetTarget(c55343236.destarget)
c:RegisterEffect(e8)
--cannot announce
local e8=Effect.CreateEffect(c)
e8:SetType(EFFECT_TYPE_FIELD)
......@@ -57,15 +28,6 @@ function c55343236.initial_effect(c)
e8:SetTarget(c55343236.antarget)
c:RegisterEffect(e8)
end
function c55343236.sumlimit(e,c)
return c:IsSetCard(0x23)
end
function c55343236.exfilter(c)
return c:IsFaceup() and c:IsSetCard(0x23)
end
function c55343236.excon(e)
return Duel.IsExistingMatchingCard(c55343236.exfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil)
end
function c55343236.spfilter(c)
return c:IsCode(74677422) and c:IsAbleToRemoveAsCost()
end
......@@ -73,7 +35,6 @@ function c55343236.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c55343236.spfilter,c:GetControler(),LOCATION_DECK,0,1,nil)
and not Duel.IsExistingMatchingCard(c55343236.exfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil)
end
function c55343236.spop(e,tp,eg,ep,ev,re,r,rp,c)
local tc=Duel.GetFirstMatchingCard(c55343236.spfilter,tp,LOCATION_DECK,0,nil)
......@@ -84,9 +45,6 @@ function c55343236.descon(e)
local f2=Duel.GetFieldCard(1,LOCATION_SZONE,5)
return (f1==nil or f1:IsFacedown()) and (f2==nil or f2:IsFacedown())
end
function c55343236.destarget(e,c)
return c:IsSetCard(0x23) and c:GetFieldID()>e:GetHandler():GetFieldID()
end
function c55343236.antarget(e,c)
return c~=e:GetHandler()
end
--Sin レインボー・ドラゴン
function c598988.initial_effect(c)
c:EnableReviveLimit()
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x23),LOCATION_MZONE)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......@@ -10,29 +11,6 @@ function c598988.initial_effect(c)
e1:SetCondition(c598988.spcon)
e1:SetOperation(c598988.spop)
c:RegisterEffect(e1)
--only 1 can exists
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
e2:SetCondition(c598988.excon)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetRange(LOCATION_MZONE)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetTargetRange(1,1)
e4:SetCode(EFFECT_CANNOT_SUMMON)
e4:SetTarget(c598988.sumlimit)
c:RegisterEffect(e4)
local e5=e4:Clone()
e5:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
c:RegisterEffect(e5)
local e6=e4:Clone()
e6:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
c:RegisterEffect(e6)
--selfdes
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_SINGLE)
......@@ -41,13 +19,6 @@ function c598988.initial_effect(c)
e7:SetCode(EFFECT_SELF_DESTROY)
e7:SetCondition(c598988.descon)
c:RegisterEffect(e7)
local e8=Effect.CreateEffect(c)
e8:SetType(EFFECT_TYPE_FIELD)
e8:SetCode(EFFECT_SELF_DESTROY)
e8:SetRange(LOCATION_MZONE)
e8:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e8:SetTarget(c598988.destarget)
c:RegisterEffect(e8)
--cannot announce
local e8=Effect.CreateEffect(c)
e8:SetType(EFFECT_TYPE_FIELD)
......@@ -64,15 +35,6 @@ function c598988.initial_effect(c)
e9:SetValue(aux.FALSE)
c:RegisterEffect(e9)
end
function c598988.sumlimit(e,c)
return c:IsSetCard(0x23)
end
function c598988.exfilter(c)
return c:IsFaceup() and c:IsSetCard(0x23)
end
function c598988.excon(e)
return Duel.IsExistingMatchingCard(c598988.exfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil)
end
function c598988.spfilter(c)
return c:IsCode(79856792) and c:IsAbleToRemoveAsCost()
end
......@@ -80,7 +42,6 @@ function c598988.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c598988.spfilter,c:GetControler(),LOCATION_HAND+LOCATION_DECK,0,1,nil)
and not Duel.IsExistingMatchingCard(c598988.exfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil)
end
function c598988.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
......@@ -92,9 +53,6 @@ function c598988.descon(e)
local f2=Duel.GetFieldCard(1,LOCATION_SZONE,5)
return (f1==nil or f1:IsFacedown()) and (f2==nil or f2:IsFacedown())
end
function c598988.destarget(e,c)
return c:IsSetCard(0x23) and c:GetFieldID()>e:GetHandler():GetFieldID()
end
function c598988.antarget(e,c)
return c~=e:GetHandler()
end
--壊星壊獣ジズキエル
function c63941210.initial_effect(c)
c:SetUniqueOnField(1,0,20000000,LOCATION_MZONE)
c:SetUniqueOnField(1,0,aux.FilterBoolFunction(Card.IsSetCard,0xd3),LOCATION_MZONE)
--special summon rule
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......
--地縛神 Chacu Challhua
function c69931927.initial_effect(c)
c:SetUniqueOnField(1,1,10000000,LOCATION_MZONE)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x21),LOCATION_MZONE)
--
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
......
--地縛神 Ccarayhua
function c79798060.initial_effect(c)
c:SetUniqueOnField(1,1,10000000,LOCATION_MZONE)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x21),LOCATION_MZONE)
--
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
......
--対壊獣用決戦兵器スーパーメカドゴラン
function c84769941.initial_effect(c)
c:EnableReviveLimit()
c:SetUniqueOnField(1,0,20000000,LOCATION_MZONE)
c:SetUniqueOnField(1,0,aux.FilterBoolFunction(Card.IsSetCard,0xd3),LOCATION_MZONE)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......
--怒炎壊獣ドゴラン
function c93332803.initial_effect(c)
c:SetUniqueOnField(1,0,20000000,LOCATION_MZONE)
c:SetUniqueOnField(1,0,aux.FilterBoolFunction(Card.IsSetCard,0xd3),LOCATION_MZONE)
--special summon rule
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......
--Sin 青眼の白龍
function c9433350.initial_effect(c)
c:EnableReviveLimit()
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x23),LOCATION_MZONE)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......@@ -10,29 +11,6 @@ function c9433350.initial_effect(c)
e1:SetCondition(c9433350.spcon)
e1:SetOperation(c9433350.spop)
c:RegisterEffect(e1)
--only 1 can exists
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
e2:SetCondition(c9433350.excon)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetRange(LOCATION_MZONE)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetTargetRange(1,1)
e4:SetCode(EFFECT_CANNOT_SUMMON)
e4:SetTarget(c9433350.sumlimit)
c:RegisterEffect(e4)
local e5=e4:Clone()
e5:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
c:RegisterEffect(e5)
local e6=e4:Clone()
e6:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
c:RegisterEffect(e6)
--selfdes
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_SINGLE)
......@@ -41,13 +19,6 @@ function c9433350.initial_effect(c)
e7:SetCode(EFFECT_SELF_DESTROY)
e7:SetCondition(c9433350.descon)
c:RegisterEffect(e7)
local e8=Effect.CreateEffect(c)
e8:SetType(EFFECT_TYPE_FIELD)
e8:SetCode(EFFECT_SELF_DESTROY)
e8:SetRange(LOCATION_MZONE)
e8:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e8:SetTarget(c9433350.destarget)
c:RegisterEffect(e8)
--cannot announce
local e8=Effect.CreateEffect(c)
e8:SetType(EFFECT_TYPE_FIELD)
......@@ -57,15 +28,6 @@ function c9433350.initial_effect(c)
e8:SetTarget(c9433350.antarget)
c:RegisterEffect(e8)
end
function c9433350.sumlimit(e,c)
return c:IsSetCard(0x23)
end
function c9433350.exfilter(c)
return c:IsFaceup() and c:IsSetCard(0x23)
end
function c9433350.excon(e)
return Duel.IsExistingMatchingCard(c9433350.exfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil)
end
function c9433350.spfilter(c)
return c:IsCode(89631139) and c:IsAbleToRemoveAsCost()
end
......@@ -73,7 +35,6 @@ function c9433350.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c9433350.spfilter,c:GetControler(),LOCATION_DECK,0,1,nil)
and not Duel.IsExistingMatchingCard(c9433350.exfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil)
end
function c9433350.spop(e,tp,eg,ep,ev,re,r,rp,c)
local tc=Duel.GetFirstMatchingCard(c9433350.spfilter,tp,LOCATION_DECK,0,nil)
......@@ -84,9 +45,6 @@ function c9433350.descon(e)
local f2=Duel.GetFieldCard(1,LOCATION_SZONE,5)
return (f1==nil or f1:IsFacedown()) and (f2==nil or f2:IsFacedown())
end
function c9433350.destarget(e,c)
return c:IsSetCard(0x23) and c:GetFieldID()>e:GetHandler():GetFieldID()
end
function c9433350.antarget(e,c)
return c~=e:GetHandler()
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