Commit 5af69d22 authored by wyykak's avatar wyykak

fix 0x256 filters

Signed-off-by: wyykak's avatarwyykak <wyy_1414@126.com>
parent 4b7ea868
...@@ -37,7 +37,7 @@ aux.FilterBoolFunction(Card.IsFusionSetCard,0x255), ...@@ -37,7 +37,7 @@ aux.FilterBoolFunction(Card.IsFusionSetCard,0x255),
aux.FilterBoolFunction(Card.IsFusionSetCard,0x261), aux.FilterBoolFunction(Card.IsFusionSetCard,0x261),
} }
function c19033.filter(c) function c19033.filter(c)
return c:IsSetCard(0x256) and c:IsAbleToHand() return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x256) and c:IsAbleToHand()
end end
function c19033.stg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c19033.stg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c19033.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c19033.filter(chkc) end
......
...@@ -28,7 +28,7 @@ function c21009.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -28,7 +28,7 @@ function c21009.spcon(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp return ep~=tp
end end
function c21009.spfilter(c,e,tp) function c21009.spfilter(c,e,tp)
return not c:IsCode(21009) and c:IsLevelBelow(4) and c:IsSetCard(0x256) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return not c:IsCode(21009) and c:IsType(TYPE_MONSTER) and c:IsLevelBelow(4) and c:IsSetCard(0x256) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c21009.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c21009.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -31,7 +31,7 @@ function c21012.initial_effect(c) ...@@ -31,7 +31,7 @@ function c21012.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c21012.cfilter(c) function c21012.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x256) return c:IsType(TYPE_MONSTER) and c:IsFaceup() and c:IsSetCard(0x256)
end end
function c21012.ntcon(e,c) function c21012.ntcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -36,7 +36,7 @@ function c21028.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +36,7 @@ function c21028.spcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsRelateToBattle() and ((a==c and d:IsType(TYPE_MONSTER) and d:IsControler(1-p)) or (d==c and a:IsType(TYPE_MONSTER) and a:IsControler(1-p))) return c:IsRelateToBattle() and ((a==c and d:IsType(TYPE_MONSTER) and d:IsControler(1-p)) or (d==c and a:IsType(TYPE_MONSTER) and a:IsControler(1-p)))
end end
function c21028.spfilter(c,e,tp) function c21028.spfilter(c,e,tp)
return c:IsLevelBelow(4) and (c:IsSetCard(0x256) or c:IsSetCard(0x258)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_MONSTER) and c:IsLevelBelow(4) and (c:IsSetCard(0x256) or c:IsSetCard(0x258)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c21028.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c21028.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -52,7 +52,7 @@ end ...@@ -52,7 +52,7 @@ end
c21036.DescSetName=0x258 c21036.DescSetName=0x258
function c21036.spfilter(c) function c21036.spfilter(c)
return (c:IsSetCard(0x256) or c:IsSetCard(0x258)) and c:IsType(TYPE_MONSTER) return c:IsType(TYPE_MONSTER) and (c:IsSetCard(0x256) or c:IsSetCard(0x258)) and c:IsType(TYPE_MONSTER)
end end
function c21036.spcon(e,c) function c21036.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -40,7 +40,7 @@ end ...@@ -40,7 +40,7 @@ end
c21039.DescSetName=0x258 c21039.DescSetName=0x258
function c21039.spfilter(c) function c21039.spfilter(c)
return (c:IsSetCard(0x256) or c:IsSetCard(0x258)) and c:IsType(TYPE_MONSTER) return c:IsType(TYPE_MONSTER) and (c:IsSetCard(0x256) or c:IsSetCard(0x258)) and c:IsType(TYPE_MONSTER)
end end
function c21039.spcon(e,c) function c21039.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -31,7 +31,7 @@ function c21071.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -31,7 +31,7 @@ function c21071.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end end
function c21071.spfilter(c,e,tp) function c21071.spfilter(c,e,tp)
return c:IsSetCard(0x256) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x256) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c21071.operation(e,tp,eg,ep,ev,re,r,rp) function c21071.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.Draw(tp,1,REASON_EFFECT)==0 then return end if Duel.Draw(tp,1,REASON_EFFECT)==0 then return end
......
...@@ -40,7 +40,7 @@ end ...@@ -40,7 +40,7 @@ end
c21074.DescSetName=0x258 c21074.DescSetName=0x258
function c21074.ntfilter(c) function c21074.ntfilter(c)
return (c:IsSetCard(0x256) or c:IsSetCard(0x258)) and c:IsAbleToRemoveAsCost() return c:IsType(TYPE_MONSTER) and (c:IsSetCard(0x256) or c:IsSetCard(0x258)) and c:IsAbleToRemoveAsCost()
end end
function c21074.ttcon(e,c) function c21074.ttcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -46,7 +46,7 @@ function c21080.initial_effect(c) ...@@ -46,7 +46,7 @@ function c21080.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c21080.mtfilter(c) function c21080.mtfilter(c)
return c:GetLevel()>0 and c:IsReleasable() and c:IsSetCard(0x256) return c:IsType(TYPE_MONSTER) and c:GetLevel()>0 and c:IsReleasable() and c:IsSetCard(0x256)
end end
function c21080.hspcon(e,c) function c21080.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -62,7 +62,7 @@ end ...@@ -62,7 +62,7 @@ end
--SpecialSummon --SpecialSummon
function cCardno.spcon(e,tp,eg,ep,ev,re,r,rp) function cCardno.spcon(e,tp,eg,ep,ev,re,r,rp)
local tc=re:GetHandler() local tc=re:GetHandler()
return tc:IsSetCard(0x256) or tc:IsSetCard(0x6208) return tc:IsType(TYPE_MONSTER) and (tc:IsSetCard(0x256) or tc:IsSetCard(0x6208))
end end
function cCardno.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cCardno.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsStatus(STATUS_CHAINING) and Duel.GetMZoneCount(tp)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end if chk==0 then return not e:GetHandler():IsStatus(STATUS_CHAINING) and Duel.GetMZoneCount(tp)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) 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