Commit 3df7c3f5 authored by salix5's avatar salix5

use aux.EffectPropertyFilter

parent 3e032628
...@@ -25,7 +25,7 @@ function c11819473.initial_effect(c) ...@@ -25,7 +25,7 @@ function c11819473.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c11819473.thfilter1(c) function c11819473.thfilter1(c)
return not c:IsCode(11819473) and c:IsEffectProperty(aux.EffectCategoryFilter(CATEGORY_COIN)) and c:IsAbleToHand() return not c:IsCode(11819473) and c:IsEffectProperty(aux.EffectPropertyFilter(EFFECT_FLAG_COIN)) and c:IsAbleToHand()
end end
function c11819473.thfilter2(c,p) function c11819473.thfilter2(c,p)
return c:IsAbleToHand(p) return c:IsAbleToHand(p)
......
...@@ -13,7 +13,7 @@ function c47292920.initial_effect(c) ...@@ -13,7 +13,7 @@ function c47292920.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c47292920.cfilter(c) function c47292920.cfilter(c)
return c:IsFaceup() and c:IsEffectProperty(aux.EffectCategoryFilter(CATEGORY_DICE)) return c:IsFaceup() and c:IsEffectProperty(aux.EffectPropertyFilter(EFFECT_FLAG_DICE))
end end
function c47292920.spcon(e,tp,eg,ep,ev,re,r,rp) function c47292920.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c47292920.cfilter,tp,LOCATION_ONFIELD,0,1,nil) return Duel.IsExistingMatchingCard(c47292920.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
...@@ -28,7 +28,7 @@ function c47292920.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -28,7 +28,7 @@ function c47292920.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c47292920.spfilter(c,e,tp) function c47292920.spfilter(c,e,tp)
return c:IsType(TYPE_MONSTER) and c:IsEffectProperty(aux.MonsterEffectCategoryFilter(CATEGORY_DICE)) return c:IsType(TYPE_MONSTER) and c:IsEffectProperty(aux.MonsterEffectPropertyFilter(EFFECT_FLAG_DICE))
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c47292920.target(e,tp,eg,ep,ev,re,r,rp,chk) function c47292920.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -88,7 +88,7 @@ function c76728962.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,7 +88,7 @@ function c76728962.desop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c76728962.thfilter(c) function c76728962.thfilter(c)
return c:IsEffectProperty(aux.EffectCategoryFilter(CATEGORY_COIN)) and c:IsType(TYPE_MONSTER) and c:IsLevelBelow(7) and c:IsAbleToHand() return c:IsEffectProperty(aux.EffectPropertyFilter(EFFECT_FLAG_COIN)) and c:IsType(TYPE_MONSTER) and c:IsLevelBelow(7) and c:IsAbleToHand()
end end
function c76728962.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c76728962.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c76728962.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c76728962.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -12,7 +12,7 @@ function c93078761.initial_effect(c) ...@@ -12,7 +12,7 @@ function c93078761.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c93078761.filter(c) function c93078761.filter(c)
return c:IsEffectProperty(aux.EffectCategoryFilter(CATEGORY_DICE)) and c:IsAbleToHand() return c:IsEffectProperty(aux.EffectPropertyFilter(EFFECT_FLAG_DICE)) and c:IsAbleToHand()
end end
function c93078761.target(e,tp,eg,ep,ev,re,r,rp,chk) function c93078761.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c93078761.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c93078761.filter,tp,LOCATION_DECK,0,1,nil) 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