Commit e46655ac authored by woodee's avatar woodee

fix

fix problem:"both player special summon" effect may lead to miscount
parent 0418303d
...@@ -42,12 +42,15 @@ function c18114794.checkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,12 +42,15 @@ function c18114794.checkop(e,tp,eg,ep,ev,re,r,rp)
c18114794[2]=Duel.GetTurnCount() c18114794[2]=Duel.GetTurnCount()
end end
local tc=eg:GetFirst() local tc=eg:GetFirst()
if tc then local sp=tc:GetSummonPlayer()
local sp=tc:GetSummonPlayer() local addtime=0
c18114794[sp]=c18114794[sp]+1 while tc do
if c18114794[sp]==3 and sp==turnp then if sp==turnp then addtime=1 end
Duel.RaiseEvent(e:GetHandler(),18114794,e,0,0,0,0) tc=eg:GetNext()
end end
c18114794[sp]=c18114794[sp]+addtime
if c18114794[sp]==3 and sp==turnp then
Duel.RaiseEvent(e:GetHandler(),18114794,e,0,0,0,0)
end end
end end
function c18114794.condition(e,tp,eg,ep,ev,re,r,rp) function c18114794.condition(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