Commit 20f286c9 authored by Amiya's avatar Amiya

修复

parent b05d8f20
Pipeline #41472 passed with stages
in 1 minute and 56 seconds
...@@ -48,12 +48,13 @@ end ...@@ -48,12 +48,13 @@ end
function s.ctcon(e,tp,eg,ep,ev,re,r,rp) function s.ctcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.filter,1,nil,nil,tp) return eg:IsExists(s.filter,1,nil,nil,tp)
end end
function s.indfilter(c,g,tp) function s.indfilter(c,g,tp,ec)
return c:IsControler(1-tp) and g:IsContains(c) return c:IsControler(1-tp) and g:IsContains(c) and ec:IsControlerCanBeChanged()
end end
function s.cttg(e,tp,eg,ep,ev,re,r,rp,chk) function s.cttg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return true end if chk==0 then return true end
local g=Duel.SelectTarget(tp,s.indfilter,tp,0,LOCATION_MZONE,1,1,nil,eg,tp) local g=Duel.SelectTarget(tp,s.indfilter,tp,0,LOCATION_MZONE,1,1,nil,eg,tp,c)
if g and g:GetCount()>0 then if g and g:GetCount()>0 then
Duel.HintSelection(g) Duel.HintSelection(g)
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