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)
c18114794[2]=Duel.GetTurnCount()
end
local tc=eg:GetFirst()
if tc then
local sp=tc:GetSummonPlayer()
c18114794[sp]=c18114794[sp]+1
if c18114794[sp]==3 and sp==turnp then
Duel.RaiseEvent(e:GetHandler(),18114794,e,0,0,0,0)
end
local sp=tc:GetSummonPlayer()
local addtime=0
while tc do
if sp==turnp then addtime=1 end
tc=eg:GetNext()
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
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