--Thanatos--
New Member
- Reaction score
- 33
JASS:
function Hero_Revive_Actions takes nothing returns nothing
local integer ownerId = 0
local player owner
loop
if revive[ownerId] != 0 then
set revive[ownerId] = revive[ownerId] - 1
call MultiboardSetItemValue (ReviveSlot[ownerId],I2S(revive[ownerId]))
if revive[ownerId] == 0 then
set owner = Player (ownerId)
call ReviveHero (Hero[ownerId],startX[ownerId],startY[ownerId],true)
if GetLocalPlayer () == owner then
call PanCameraTo (startX[ownerId],startY[ownerId])
call ClearSelection ()
call SelectUnit (Hero[ownerId],true)
call SetUnitPosition (Hero[ownerId],startX[ownerId],startY[ownerId])
endif
call MultiboardSetItemValue (ReviveSlot[ownerId],"Alive")
endif
endif
set ownerId = ownerId + 1
exitwhen ownerId == 12
endloop
set owner = null
endfunction
//===========================================================================
function InitTrig_Hero_Revive takes nothing returns nothing
set gg_trg_Hero_Revive = CreateTrigger ()
call TimerStart (CreateTimer(),1.,true,function Hero_Revive_Actions)
call TriggerAddAction (gg_trg_Hero_Revive,function Hero_Revive_Actions)
endfunction
This cause all clients to DC out
when the revive was 0
anyone know the reason?