Added support for [object] duration=turn end

This commit is contained in:
Elvish_Hunter 2015-05-01 11:46:42 +02:00
parent 10abcb9b17
commit e8d58f4f1f
2 changed files with 5 additions and 0 deletions

View file

@ -10,6 +10,8 @@ Version 1.13.0+dev:
* Era names no longer support formatting markup in the game setup screen.
* Units:
* Fixed the Shuja not having the default AMLA.
* WML engine:
* Added support for [object] duration=turn end
* Miscellaneous and bug fixes:
* Removed abandoned libana network API implementation.
* Fixed bug#23201 Toggle icons display error in replay.

View file

@ -1178,6 +1178,9 @@ void unit::new_turn()
void unit::end_turn()
{
expire_modifications("turn end");
expire_modifications("turn_end");
set_state(STATE_SLOWED,false);
if((movement_ != total_movement()) && !(get_state(STATE_NOT_MOVED))) {
resting_ = false;