Fix [heal_unit] not restoring statuses by default (GNA25605)

This commit is contained in:
Celtic Minstrel 2017-03-17 10:58:06 -04:00
parent 96c79ba6b3
commit b16728c78e

View file

@ -675,7 +675,7 @@ function wml_actions.heal_unit(cfg)
u.attacks_left = u.max_attacks
end
if cfg.restore_statuses then
if cfg.restore_statuses == true or cfg.restore_statuses == nil then
u.status.poisoned = false
u.status.petrified = false
u.status.slowed = false