Commit 48c1fb35 authored by sidschingis's avatar sidschingis

fixed being able to banish non Monster Cards

parent c4fc15c5
...@@ -10,18 +10,22 @@ function c73414375.initial_effect(c) ...@@ -10,18 +10,22 @@ function c73414375.initial_effect(c)
e1:SetOperation(c73414375.operation) e1:SetOperation(c73414375.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c73414375.filter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
end
function c73414375.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c73414375.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
if chk==0 then return true end if chk==0 then return true end
local g=Group.CreateGroup() local g=Group.CreateGroup()
if Duel.IsExistingTarget(Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(73414375,1)) then if Duel.IsExistingTarget(c73414375.filter,tp,0,LOCATION_GRAVE,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(73414375,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local rg=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,3,nil) local rg=Duel.SelectTarget(tp,c73414375.filter,tp,0,LOCATION_GRAVE,1,3,nil)
g:Merge(rg) g:Merge(rg)
end end
if Duel.IsExistingTarget(Card.IsAbleToRemove,1-tp,0,LOCATION_GRAVE,1,nil) and Duel.SelectYesNo(1-tp,aux.Stringid(73414375,1)) then if Duel.IsExistingTarget(c73414375.filter,1-tp,0,LOCATION_GRAVE,1,nil) and Duel.SelectYesNo(1-tp,aux.Stringid(73414375,1)) then
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_REMOVE)
local rg=Duel.SelectTarget(1-tp,Card.IsAbleToRemove,1-tp,0,LOCATION_GRAVE,1,3,nil) local rg=Duel.SelectTarget(1-tp,c73414375.filter,1-tp,0,LOCATION_GRAVE,1,3,nil)
g:Merge(rg) g:Merge(rg)
end end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0)
......
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