Commit abe3d46e authored by DailyShana's avatar DailyShana

fix

parent 35279684
...@@ -47,9 +47,16 @@ end ...@@ -47,9 +47,16 @@ end
function c3752422.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c3752422.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
if chkc then return chkc~=c and chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c3752422.filter(chkc) end if chkc then return chkc~=c and chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c3752422.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c3752422.filter,tp,LOCATION_MZONE,0,1,c) end if chk==0 then return c:GetLevel()>1
and Duel.IsExistingTarget(c3752422.filter,tp,LOCATION_MZONE,0,1,c) end
local t={}
local p=c:GetLevel()-1
p=math.min(p,5)
for i=1,p do
t[i]=i
end
Duel.Hint(HINT_SELECTMSG,tp,567) Duel.Hint(HINT_SELECTMSG,tp,567)
e:SetLabel(Duel.AnnounceNumber(tp,1,2,3,4,5)) e:SetLabel(Duel.AnnounceNumber(tp,table.unpack(t)))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,c3752422.filter,tp,LOCATION_MZONE,0,1,1,c) Duel.SelectTarget(tp,c3752422.filter,tp,LOCATION_MZONE,0,1,1,c)
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