zwclose7

Gaming => Battle for Wesnoth => Topic started by: zwclose7 on January 30, 2017, 08:33:51 pm

Title: Ability: immortal
Post by: zwclose7 on January 30, 2017, 08:33:51 pm
Description: Units with this ability can only be killed by arcane attacks.

Code: [Select]
#define ABILITY_IMMORTAL
[dummy]
id=immortal
name="immortal"
description="Units with this ability can only be killed by arcane attacks."
[/dummy]

[/abilities]

[event]
name=last breath
first_time_only=no

[filter]
ability=immortal
[/filter]

[filter_second_attack]
[not]
type=arcane
[/not]
[/filter_second_attack]

{VARIABLE unit.hitpoints 1}

[unstore_unit]
variable=unit
text="resist"
{COLOR_HEAL}
[/unstore_unit]
[/event]

[+abilities]
#enddef

#define SPECIAL_NOTES_IMMORTAL
" This unit can only be killed by arcane attacks."#enddef