Commit 5fa82f7e authored by wind2009's avatar wind2009
parents c55558e5 1bc692ed
......@@ -75,7 +75,7 @@ function s.eaop(e,tp,eg,ep,ev,re,r,rp)
end
function s.actcon(e)
local a=Duel.GetAttacker()
return a:IsSetCard(0x10af) and a:IsControler(e:GetHandlerPlayer())
return a~=nil and a:IsSetCard(0x10af) and a:IsControler(e:GetHandlerPlayer())
end
function s.thfilter(c)
return c:IsFaceupEx() and c:IsSetCard(0xaf)
......
......@@ -55,7 +55,7 @@ function s.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_ONFIELD+LOCATION_GRAVE) and chkc:IsAbleToRemove() and chkc:IsControler(1-tp) end
if chk==0 then return true end
if chk==0 then return Duel.IsExistingTarget(card.IsAbleToRemove,tp,LOCATION_ONFIELD+LOCATION_GRAVE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=aux.SelectTargetFromFieldFirst(tp,Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,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