Commit 655ad739 authored by salix5's avatar salix5 Committed by GitHub

change setcode: 地縛神 (#2085)

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