Skip to content

Commit

Permalink
With [fire_event] the case is covered properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Toranks authored and Dugy committed May 9, 2023
1 parent 67711a0 commit f0abbc4
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions utils/abilities_events.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2702,7 +2702,7 @@
[/unstore_unit]
{NEXT i}
{CLEAR_VARIABLE unzombie_store}
# To cover the case where the infected unit is a necromancer
# To cover the case where the infected unit is a necromancer
[store_unit]
[filter]
status=infected
Expand All @@ -2728,11 +2728,18 @@
[foreach]
array=necromancy_store
[do]
[kill]
id=$this_item.id
fire_event=yes
animate=yes
[/kill]
[fire_event]
name=last_breath
[primary_unit]
id=$this_item.id
[/primary_unit]
[/fire_event]
[fire_event]
name=die
[primary_unit]
id=$this_item.id
[/primary_unit]
[/fire_event]
[/do]
[/foreach]
{CLEAR_VARIABLE necromancy_store}
Expand Down

0 comments on commit f0abbc4

Please sign in to comment.