Commit b836b52f authored by TanakaKotoha's avatar TanakaKotoha

Mercury233

parent 993ecdd1
...@@ -17,7 +17,7 @@ function c26807058.counterfilter(c) ...@@ -17,7 +17,7 @@ function c26807058.counterfilter(c)
return c:IsSummonType(SUMMON_TYPE_RITUAL) return c:IsSummonType(SUMMON_TYPE_RITUAL)
end end
function c26807058.costfilter(c) function c26807058.costfilter(c)
return bit.band(c:GetType(),0x81)==0x81 and c:IsFaceup() and c:IsAbleToGraveAsCost() return bit.band(c:GetType(),0x81)==0x81 and (c:IsFaceup() or c:IsLocation(LOCATION_HAND)) and c:IsAbleToGraveAsCost()
end end
function c26807058.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c26807058.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c26807058.costfilter,tp,LOCATION_EXTRA+LOCATION_HAND+LOCATION_MZONE,0,1,nil) and Duel.GetCustomActivityCount(26807058,tp,ACTIVITY_SPSUMMON)==0 end if chk==0 then return Duel.IsExistingMatchingCard(c26807058.costfilter,tp,LOCATION_EXTRA+LOCATION_HAND+LOCATION_MZONE,0,1,nil) and Duel.GetCustomActivityCount(26807058,tp,ACTIVITY_SPSUMMON)==0 end
......
...@@ -43,7 +43,7 @@ function cm.ffilter(c) ...@@ -43,7 +43,7 @@ function cm.ffilter(c)
return c:IsLevelBelow(6) and (c:IsFusionType(TYPE_FUSION) or bit.band(c:GetFusionType(),0x81)==0x81) return c:IsLevelBelow(6) and (c:IsFusionType(TYPE_FUSION) or bit.band(c:GetFusionType(),0x81)==0x81)
end end
function cm.val(e,c) function cm.val(e,c)
return Duel.GetMatchingGroupCount(cm.filter,c:GetControler(),0,LOCATION_GRAVE+LOCATION_MZONE,nil)*300 return Duel.GetMatchingGroupCount(cm.filter,c:GetControler(),LOCATION_GRAVE+LOCATION_MZONE,0,nil)*300
end end
function cm.filter(c) function cm.filter(c)
return (c:IsLevelBelow(6) and (c:IsType(TYPE_FUSION) or bit.band(c:GetType(),0x81)==0x81)) and (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) return (c:IsLevelBelow(6) and (c:IsType(TYPE_FUSION) or bit.band(c:GetType(),0x81)==0x81)) and (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup())
......
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