wesnoth/data/campaigns/Winds_of_Fate/utils/abilities.cfg
newfrenchy83 140d0a6ea4 Integrate special ability events into these abilities.
This had not yet been done in the mainline.
2025-02-22 14:04:29 -06:00

71 lines
1.9 KiB
INI

#textdomain wesnoth-wof
#define WEAPON_SPECIAL_BLAST ATTACK_NAME DAMAGE DAMAGE_TYPE
[damage]
id=blast
name= _ "blast"
name_inactive= _ "blast"
description= _ "This attack also harms everyone near the opponent."
{WEAPON_SPECIAL_BLAST_EVENT {ATTACK_NAME} {DAMAGE} {DAMAGE_TYPE}}
[/damage]
#enddef
#define WEAPON_SPECIAL_BLAST_EVENT ATTACK_NAME DAMAGE DAMAGE_TYPE
[event]
id=attacker_hits_blast_event_{ATTACK_NAME}_{DAMAGE}_{DAMAGE_TYPE}
name=attacker_hits
first_time_only=no
[filter_attack]
name={ATTACK_NAME}
[/filter_attack]
[harm_unit]
[filter]
[filter_location]
x,y=$x2,$y2
radius=1
[/filter_location]
[not]
x,y=$x1,$y1
[/not]
[and]
[not]
x,y=$x2,$y2
[/not]
[/and]
[/filter]
amount={DAMAGE}
damage_type={DAMAGE_TYPE}
fire_event=yes
animate=yes
[/harm_unit]
[/event]
[event]
id=defender_hits_blast_event_{ATTACK_NAME}_{DAMAGE}_{DAMAGE_TYPE}
name=defender_hits
first_time_only=no
[filter_second_attack]
name={ATTACK_NAME}
[/filter_second_attack]
[harm_unit]
[filter]
[filter_location]
x,y=$x1,$y1
radius=1
[/filter_location]
[not]
x,y=$x1,$y1
[/not]
[and]
[not]
x,y=$x2,$y2
[/not]
[/and]
[/filter]
amount={DAMAGE}
damage_type={DAMAGE_TYPE}
fire_event=yes
animate=yes
[/harm_unit]
[/event]
#enddef