FOnline Development > Share Your Work

Turn-based combat shortkeys

<< < (2/2)

wladimiiir:
After some testing, I found out, that when having Bonus Move perk and player uses all its APs except the one from Bonus Move, end turn is not invoked, because of check in the (unsafe) scripts on Server side.

So I have changed the checks from:

--- Code: ---if(map.IsTurnBased() && player.Stat[ST_CURRENT_AP] > 0)
--- End code ---
to:

--- Code: ---if(map.IsTurnBased() && (player.Stat[ST_CURRENT_AP] > 0 || player.Stat[ST_MOVE_AP] > 0))
--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version