Commit c02da634 authored by Huangnan's avatar Huangnan

fix

parent f5053d4c
Pipeline #39044 failed with stages
in 4 minutes and 59 seconds
...@@ -75,12 +75,12 @@ function s.remfilter(c,e,tp) ...@@ -75,12 +75,12 @@ function s.remfilter(c,e,tp)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x5c0) return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x5c0)
end end
function s.remtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.remtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp) end if chk==0 then return Duel.IsExistingMatchingCard(s.remfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_EXTRA)
end end
function s.remop(e,tp,eg,ep,ev,re,r,rp) function s.remop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_EXTRA,0,1,1,nil):GetFirst() local g=Duel.SelectMatchingCard(tp,s.remfilter,tp,LOCATION_EXTRA,0,1,1,nil):GetFirst()
if g then if g then
Duel.Remove(g,POS_FACEUP,REASON_EFFECT) Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
end 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