Commit c3e7cee3 authored by Tachibana's avatar Tachibana

eme

parent a9c2af24
Pipeline #6521 passed with stages
in 27 minutes and 15 seconds
......@@ -35,10 +35,10 @@ function cm.rmfilter(c)
end
function cm.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local ct=e:GetHandler():GetMaterialCount()
if chkc then return chkc:IsLocation(LOCATION_ONFILED) and chkc:IsControler(1-tp) and cm.rmfilter(chkc) end
if chk==0 then return ct>0 and Duel.IsExistingTarget(cm.rmfilter,tp,0,LOCATION_ONFILED,1,nil) end
if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and chkc:IsControler(1-tp) and cm.rmfilter(chkc) end
if chk==0 then return ct>0 and Duel.IsExistingTarget(cm.rmfilter,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectTarget(tp,cm.rmfilter,tp,0,LOCATION_ONFILED,1,ct,nil)
local g=Duel.SelectTarget(tp,cm.rmfilter,tp,0,LOCATION_ONFIELD,1,ct,nil)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,g:GetCount(),0,0)
end
function cm.rmop(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