Commit 655ad739 authored by Chen Bill's avatar Chen Bill Committed by GitHub

change setcode: 地縛神 (#2085)

parent b4a8364f
--地縛神 Aslla piscu
function c10875327.initial_effect(c)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x21),LOCATION_MZONE)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x1021),LOCATION_MZONE)
--
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
......
--地縛神 Uru
function c15187079.initial_effect(c)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x21),LOCATION_MZONE)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x1021),LOCATION_MZONE)
--
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -11,7 +11,7 @@ function c29934351.initial_effect(c)
c:RegisterEffect(e1)
end
function c29934351.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x21)
return c:IsFaceup() and c:IsSetCard(0x1021)
end
function c29934351.condition(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.IsChainNegatable(ev)
......
--地縛神 Cusillu
function c33537328.initial_effect(c)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x21),LOCATION_MZONE)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x1021),LOCATION_MZONE)
--
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -12,7 +12,7 @@ function c39967326.initial_effect(c)
c:RegisterEffect(e1)
end
function c39967326.filter(c,e,tp)
return c:IsSetCard(0x21) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsSetCard(0x1021) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c39967326.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c39967326.filter(chkc,e,tp) end
......
--地縛神 Wiraqocha Rasca
function c41181774.initial_effect(c)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x21),LOCATION_MZONE)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x1021),LOCATION_MZONE)
--
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -51,13 +51,13 @@ function c44710391.dttg(e,c)
return c:IsType(TYPE_SYNCHRO) and (c:IsFaceup() or c:IsControler(e:GetHandlerPlayer()))
end
function c44710391.dtval(e,c)
return c:IsSetCard(0x21) and c:IsControler(e:GetHandlerPlayer())
return c:IsSetCard(0x1021) and c:IsControler(e:GetHandlerPlayer())
end
function c44710391.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(Card.IsType,1,nil,TYPE_SYNCHRO)
end
function c44710391.thfilter(c)
return c:IsSetCard(0x21) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
return c:IsSetCard(0x1021) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
end
function c44710391.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c44710391.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -48,7 +48,7 @@ function c45836982.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
function c45836982.thfilter(c)
return c:IsSetCard(0x21) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
return c:IsSetCard(0x1021) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c45836982.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c45836982.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end
......@@ -63,7 +63,7 @@ function c45836982.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c45836982.lpfilter(c)
return c:IsFaceup() and c:IsSetCard(0x21)
return c:IsFaceup() and c:IsSetCard(0x1021)
end
function c45836982.lpcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLP(1-tp)~=3000 and not eg:IsContains(e:GetHandler()) and eg:IsExists(c45836982.lpfilter,1,nil)
......
--地縛神 Ccapac Apu
function c46263076.initial_effect(c)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x21),LOCATION_MZONE)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x1021),LOCATION_MZONE)
--
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -20,7 +20,7 @@ function c56339050.initial_effect(c)
c:RegisterEffect(e2)
end
function c56339050.cfilter(c,atk)
return c:IsFaceup() and c:IsSetCard(0x21) and c:GetAttack()>atk
return c:IsFaceup() and c:IsSetCard(0x1021) and c:GetAttack()>atk
end
function c56339050.condition(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttacker()
......
......@@ -16,7 +16,7 @@ function c64187086.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end
function c64187086.filter1(c)
return c:IsSetCard(0x21) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
return c:IsSetCard(0x1021) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c64187086.filter2(c)
return c:IsType(TYPE_FIELD) and c:IsAbleToHand()
......
......@@ -6,7 +6,7 @@ function c67987302.initial_effect(c)
e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x21))
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x1021))
e1:SetValue(c67987302.efilter)
c:RegisterEffect(e1)
end
......
--地縛神 Chacu Challhua
function c69931927.initial_effect(c)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x21),LOCATION_MZONE)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x1021),LOCATION_MZONE)
--
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -22,7 +22,7 @@ function c70109009.initial_effect(c)
c:RegisterEffect(e2)
end
function c70109009.cfilter(c)
return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_NORMAL) and c:IsSetCard(0x21)
return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_NORMAL) and c:IsSetCard(0x1021)
end
function c70109009.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c70109009.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
......
--地縛神 Ccarayhua
function c79798060.initial_effect(c)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x21),LOCATION_MZONE)
c:SetUniqueOnField(1,1,aux.FilterBoolFunction(Card.IsSetCard,0x1021),LOCATION_MZONE)
--
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -14,7 +14,7 @@ function c82340056.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLP(tp)<=3000 and Duel.GetTurnPlayer()~=tp and Duel.GetAttackTarget()==nil
end
function c82340056.filter(c)
return c:IsSetCard(0x21) and c:IsAbleToHand()
return c:IsSetCard(0x1021) and c:IsAbleToHand()
end
function c82340056.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133)
......@@ -60,5 +60,5 @@ function c82340056.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummonComplete()
end
function c82340056.sumlimit(e,c)
return not c:IsSetCard(0x21)
return not c:IsSetCard(0x1021)
end
......@@ -77,7 +77,7 @@ function c95453143.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,LOCATION_DECK)
end
function c95453143.thfilter(c)
return c:IsSetCard(0x21) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
return c:IsSetCard(0x1021) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c95453143.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
......
......@@ -11,7 +11,7 @@ function c96907086.initial_effect(c)
c:RegisterEffect(e1)
end
function c96907086.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x21)
return c:IsFaceup() and c:IsSetCard(0x1021)
end
function c96907086.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c96907086.cfilter,tp,LOCATION_MZONE,0,1,nil)
......
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