Commit 543e9ce5 authored by wind2009's avatar wind2009

Merge remote-tracking branch 'upstream/LEDE' into master

parents 46ddbedb 2cbcd06e
...@@ -45,10 +45,10 @@ function c91098230.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,10 +45,10 @@ function c91098230.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c91098230.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c91098230.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() end if chkc then return chkc:IsOnField() and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,LOCATION_ONFIELD,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_ONFIELD,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,LOCATION_ONFIELD,0,1,1,nil) local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_ONFIELD,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end end
function c91098230.desop(e,tp,eg,ep,ev,re,r,rp) function c91098230.desop(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