Commit 89370287 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c16400370.lua

parent a6413160
Pipeline #31179 failed with stages
in 18 minutes and 48 seconds
......@@ -31,7 +31,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
end
function cm.costfilter(c)
return c:IsFaceup() and c:IsAbleToDeckAsCost() and Duel.GetMZoneCount(c:GetControler(),c)>0 and c:IsType(TYPE_MONSTER)
return c:IsFaceup() and c:IsAbleToDeckAsCost() and Duel.GetMZoneCount(c:GetControler(),c)>0 and c:IsSetCard(0xce9)
end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end
......@@ -49,7 +49,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
function cm.rdconfilter(c,tp)
return c:IsPreviousLocation(LOCATION_GRAVE+LOCATION_ONFIELD) and c:IsSetCard(0xce9) and c:IsPreviousControler(tp)
return c:IsPreviousLocation(LOCATION_GRAVE+LOCATION_ONFIELD) and c:IsType(TYPE_MONSTER) and c:IsPreviousControler(tp)
end
function cm.rdcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.rdconfilter,1,nil,tp)
......
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