Commit fe7eb9ac authored by Amiya's avatar Amiya

修复

parent a490cb66
Pipeline #41474 passed with stages
in 2 minutes and 26 seconds
......@@ -51,8 +51,9 @@ end
function s.indfilter(c,g,tp,ec)
return c:IsControler(1-tp) and g:IsContains(c) and ec:IsControlerCanBeChanged()
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,chkc)
local c=e:GetHandler()
if chkc then return chkc:IsControler(1-tp) and eg:IsContains(chkc) and c:IsControlerCanBeChanged() end
if chk==0 then return true end
local g=Duel.SelectTarget(tp,s.indfilter,tp,0,LOCATION_MZONE,1,1,nil,eg,tp,c)
if g and g:GetCount()>0 then
......
......@@ -43,7 +43,11 @@ function s.cfilter(c,g,e,tp)
and Duel.GetLocationCount(1-c:GetControler(),LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,id+o,0,TYPES_TOKEN_MONSTER,0,0,3,RACE_AQUA,ATTRIBUTE_WATER,POS_FACEUP,1-c:GetControler())
end
function s.tktg(e,tp,eg,ep,ev,re,r,rp,chk)
function s.tktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsSummonPlayer(1-tp) and eg:IsContains(chkc)
and Duel.GetLocationCount(1-chkc:GetControler(),LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,id+o,0,TYPES_TOKEN_MONSTER,0,0,3,RACE_AQUA,ATTRIBUTE_WATER,POS_FACEUP,1-chkc:GetControler())
end
if chk==0 then return Duel.IsExistingTarget(s.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,eg,e,tp) end
local g=Duel.SelectTarget(tp,s.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,eg,e,tp)
Duel.HintSelection(g)
......
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