Clear dehydration status on victory (resolves #5687)

Even though units are not dehydrated in subsequent scenarios, the dehydration icon may otherwise still appear in the side-bar without this.
This commit is contained in:
Wedge009 2021-09-18 02:49:06 +10:00
parent e398846ccb
commit 4c9e016fa3

View file

@ -303,4 +303,28 @@ Hd, Dd*, Dd^E*, Rd #enddef
object_id=dehydration_overlay
[/remove_object]
[/event]
[event]
name="victory"
[modify_unit]
[filter]
status=dehydrated
[/filter]
[status]
dehydrated=no
[/status]
[/modify_unit]
[modify_unit]
[filter]
status=dehydration_slowed_by_healer
[/filter]
[status]
dehydration_slowed_by_healer=no
[/status]
[/modify_unit]
[/event]
#enddef