Commit cd715248 authored by salix5's avatar salix5

fix

parent 7525055d
...@@ -35,8 +35,12 @@ function c11501629.ctfilter(c,tp) ...@@ -35,8 +35,12 @@ function c11501629.ctfilter(c,tp)
end end
function c11501629.ctcon(e,tp,eg,ep,ev,re,r,rp) function c11501629.ctcon(e,tp,eg,ep,ev,re,r,rp)
local ct=eg:FilterCount(c11501629.ctfilter,nil,tp) local ct=eg:FilterCount(c11501629.ctfilter,nil,tp)
e:SetLabel(ct) if ct>0 and e:GetHandler():IsCanAddCounter(0x2d,ct) then
return ct>0 and e:GetHandler():IsCanAddCounter(0x2d,ct) e:SetLabel(ct)
return true
else
return false
end
end end
function c11501629.ctop(e,tp,eg,ep,ev,re,r,rp) function c11501629.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x2d,e:GetLabel()) e:GetHandler():AddCounter(0x2d,e:GetLabel())
......
...@@ -35,6 +35,6 @@ function c48716527.distg(e,c) ...@@ -35,6 +35,6 @@ function c48716527.distg(e,c)
end end
function c48716527.tgcon(e) function c48716527.tgcon(e)
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_END
and not Duel.IsExistingMatchingCard(c48716527.cfilter,tp,LOCATION_MZONE,0,1,nil) and not Duel.IsExistingMatchingCard(c48716527.cfilter,tp,LOCATION_MZONE,0,1,nil)
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