Commit d4be471c authored by Tachibana's avatar Tachibana

1145141919810

parent 56686824
Pipeline #15043 passed with stages
in 35 minutes and 42 seconds
--海港知彼·莉莉
i--海港知彼·莉莉
local m=52520023
local cm=_G["c"..m]
function cm.initial_effect(c)
......@@ -47,24 +47,23 @@ end
function cm.aclimit(e,re,tp)
return re:IsActiveType(TYPE_MONSTER)
end
function cm.filter(c,e,tp)
function cm.reflter(c,e,tp)
return c:IsSummonPlayer(1-tp) and c:IsLocation(LOCATION_MZONE) and c:IsAbleToRemove()
and (not e or c:IsRelateToEffect(e))
end
function cm.remtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(cm.filter,1,nil,nil,tp) end
local g=eg:Filter(cm.filter,nil,nil,tp)
if chk==0 then return eg:IsExists(cm.reflter,1,nil,nil,tp) end
local g=eg:Filter(cm.reflter,nil,nil,tp)
Duel.SetTargetCard(g)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)
end
function cm.remop(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(cm.filter,nil,e,tp)
local g=eg:Filter(cm.reflter,nil,e,tp)
local tc=g:GetFirst()
if not tc then return end
if g:GetCount()>1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
tc=g:Select(tp,1,1,nil):GetFirst()
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
end
end
function cm.thcon(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