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:
parent
e398846ccb
commit
4c9e016fa3
1 changed files with 24 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue