Commit 10ac205d authored by DailyShana's avatar DailyShana

Merge pull request #374 from nekrozar/patch-2

change setcode
parents 170f44d5 fbabdab3
......@@ -14,7 +14,7 @@ function c14094090.initial_effect(c)
c:RegisterEffect(e1)
end
function c14094090.ritual_filter(c)
return c:IsType(TYPE_RITUAL) and c:IsSetCard(0xcf)
return c:IsType(TYPE_RITUAL) and c:IsSetCard(0x10cf)
end
function c14094090.cfilter(c,att)
return c:IsAttribute(att) and c:IsAbleToRemoveAsCost()
......@@ -32,7 +32,7 @@ function c14094090.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(g1,POS_FACEUP,REASON_COST)
end
function c14094090.spfilter(c,e,tp)
return c:IsSetCard(0xcf) and c:IsType(TYPE_RITUAL) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
return c:IsSetCard(0x10cf) and c:IsType(TYPE_RITUAL) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
end
function c14094090.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
......@@ -33,7 +33,7 @@ function c29904964.ntcon(e,c,minc)
and Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)
end
function c29904964.spfilter(c,e,tp)
return c:IsSetCard(0xcf) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsSetCard(0x10cf) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c29904964.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c29904964.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end
......@@ -47,5 +47,5 @@ function c29904964.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c29904964.mtval(e,c)
return c:IsSetCard(0xcf)
return c:IsSetCard(0x10cf)
end
......@@ -26,7 +26,7 @@ end
function c32013448.mtop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFlagEffect(tp,32013448)~=0 then return end
local c=e:GetHandler()
local g=eg:Filter(Card.IsSetCard,nil,0xcf)
local g=eg:Filter(Card.IsSetCard,nil,0x10cf)
local rc=g:GetFirst()
if not rc then return end
local e1=Effect.CreateEffect(c)
......
......@@ -30,7 +30,7 @@ function c40089744.initial_effect(c)
c:RegisterEffect(e3)
end
function c40089744.filter(c)
return ((c:IsSetCard(0xcf) and c:IsType(TYPE_RITUAL)) or c:IsSetCard(0xbd)) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
return ((c:IsSetCard(0x10cf) and c:IsType(TYPE_RITUAL)) or c:IsSetCard(0xbd)) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c40089744.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c40089744.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -26,7 +26,7 @@ end
function c6628343.mtop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFlagEffect(tp,6628343)~=0 then return end
local c=e:GetHandler()
local g=eg:Filter(Card.IsSetCard,nil,0xcf)
local g=eg:Filter(Card.IsSetCard,nil,0x10cf)
local rc=g:GetFirst()
if not rc then return end
local e1=Effect.CreateEffect(c)
......
......@@ -25,11 +25,11 @@ function c73694478.initial_effect(c)
c:RegisterEffect(e2)
end
function c73694478.filter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0xcf)
return c:IsFaceup() and c:IsSetCard(0x10cf)
and Duel.IsExistingMatchingCard(c73694478.spfilter,tp,LOCATION_HAND,0,1,nil,c:GetCode(),e,tp)
end
function c73694478.spfilter(c,code,e,tp)
return c:IsSetCard(0xcf) and not c:IsCode(code) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
return c:IsSetCard(0x10cf) and not c:IsCode(code) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
end
function c73694478.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c73694478.filter(chkc,e,tp) end
......@@ -59,7 +59,7 @@ function c73694478.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end
function c73694478.thfilter(c)
return c:IsSetCard(0xcf) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
return c:IsSetCard(0x10cf) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c73694478.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c73694478.thfilter(chkc) end
......
......@@ -45,7 +45,7 @@ function c7841921.atkop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1)
end
function c7841921.thfilter(c)
return c:IsSetCard(0xcf) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
return c:IsSetCard(0x10cf) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c7841921.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c7841921.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -21,7 +21,7 @@ function c79234734.initial_effect(c)
c:RegisterEffect(e2)
end
function c79234734.cfilter(c)
return c:IsSetCard(0xcf) and c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost()
return c:IsSetCard(0x10cf) and c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost()
end
function c79234734.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c79234734.cfilter,tp,LOCATION_HAND,0,1,nil) end
......
......@@ -21,7 +21,7 @@ function c799183.initial_effect(c)
c:RegisterEffect(e2)
end
function c799183.condition(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_MZONE,0,1,nil,0xcf) then return false end
if not Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_MZONE,0,1,nil,0x10cf) then return false end
if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return g and g:IsExists(Card.IsLocation,1,nil,LOCATION_MZONE)
......
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