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) ...@@ -75,7 +75,7 @@ function s.eaop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.actcon(e) function s.actcon(e)
local a=Duel.GetAttacker() 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 end
function s.thfilter(c) function s.thfilter(c)
return c:IsFaceupEx() and c:IsSetCard(0xaf) return c:IsFaceupEx() and c:IsSetCard(0xaf)
......
...@@ -55,7 +55,7 @@ function s.rmcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -55,7 +55,7 @@ function s.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) 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 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) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=aux.SelectTargetFromFieldFirst(tp,Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,1,1,nil) 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) 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