diff -r 9400a272c88f -r fa402ce826c2 hedgewars/uGears.pas --- a/hedgewars/uGears.pas Thu Feb 08 15:44:08 2018 +0100 +++ b/hedgewars/uGears.pas Thu Feb 08 18:10:39 2018 +0100 @@ -62,7 +62,7 @@ var delay: LongWord; delay2: LongWord; - step: (stDelay, stChDmg, stSweep, stTurnReact, + step: (stInit, stDelay, stChDmg, stSweep, stTurnReact, stAfterDelay, stChWin, stWater, stChWin2, stHealth, stSpawn, stNTurn); NewTurnTick: LongWord; @@ -253,6 +253,11 @@ if AllInactive then case step of + stInit: + begin + ScriptCall('onEndTurn'); + inc(step) + end; stDelay: begin if delay = 0 then