Commit 19b7c3a3 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c50218149.lua

parent 72a34993
Pipeline #30676 canceled with stages
in 32 seconds
......@@ -80,14 +80,13 @@ function c50218149.value(e,c)
return Duel.GetMatchingGroupCount(c50218149.afilter,c:GetControler(),LOCATION_REMOVED,0,nil)*500
end
function c50218149.cpfilter(c)
return c:IsSetCard(0xcb1) and c:IsType(TYPE_MONSTER)
and not c:IsForbidden() and c:IsAbleToRemove()
return c:IsSetCard(0xcb1) and c:IsType(TYPE_MONSTER) and not c:IsForbidden() and c:IsAbleToRemove()
end
function c50218149.cptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c50218149.cpfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c50218149.cpfilter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,c50218149.filter,tp,LOCATION_GRAVE,0,1,1,nil)
local g=Duel.SelectTarget(tp,c50218149.cpfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,tp,LOCATION_GRAVE)
end
function c50218149.cpop(e,tp,eg,ep,ev,re,r,rp)
......
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