Commit 6af725ad authored by Tachibana's avatar Tachibana

eme

parent 9c0b9c26
Pipeline #8840 passed with stages
in 22 minutes and 58 seconds
......@@ -29,7 +29,7 @@ function c81016015.desfilter(c,tp)
return Duel.GetMZoneCount(tp,c)>0
end
function c81016015.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c81016015.desfilter(chkc) end
if chkc then return chkc:IsOnField() and c81016015.desfilter(chkc,tp) end
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.IsExistingTarget(c81016015.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
......@@ -34,15 +34,15 @@ end
function cm.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_EXTRA,0)==0
end
function cm.desfilter(c,tp)
return Duel.GetMZoneCount(tp,c)>0 and c:IsAbleToHand()
function cm.desfilter(c)
return c:IsAbleToHand()
end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and cm.desfilter(chkc) end
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.IsExistingTarget(cm.desfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,tp) end
and Duel.IsExistingTarget(cm.desfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectTarget(tp,cm.desfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil,tp)
local g=Duel.SelectTarget(tp,cm.desfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
......
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