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

pic

parent 21eac381
No preview for this file type
......@@ -79,15 +79,15 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RegisterEffect(e1)
end
function cm.ovfilter(c)
return c:IsCanOverlay()
return c:IsCanOverlay() and c:IsType(TYPE_MONSTER)
end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.ovfilter,tp,0,LOCATION_MZONE,1,nil,e:GetHandler()) end
if chk==0 then return Duel.IsExistingMatchingCard(cm.ovfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,1,nil,e:GetHandler()) end
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
local g=Duel.GetMatchingGroup(cm.ovfilter,tp,0,LOCATION_MZONE,c)
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(cm.ovfilter),tp,0,LOCATION_MZONE+LOCATION_GRAVE,c)
if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local tg=g:Select(tp,1,1,nil)
......
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