DiD: update shadow veil implementation

This commit is contained in:
nemaara 2020-06-26 02:18:39 -04:00 committed by GitHub
parent ee771dbf5c
commit 8eba5615e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -154,8 +154,7 @@
side=1
race=undead
[/filter]
[if]
[filter_condition]
[have_unit]
x,y=$x1,$y1
[filter_location]
@ -168,39 +167,60 @@
[/and]
[/filter_location]
[/have_unit]
[then]
[object]
take_only_once=no
silent=yes
duration=forever
[filter]
x,y=$x1,$y1
[/filter]
[effect]
apply_to=new_ability
[abilities]
{ABILITY_SHADOW_VEIL_HELPER}
[/abilities]
[/effect]
[/object]
[/then]
[else]
[object]
take_only_once=no
silent=yes
duration=forever
[filter]
x,y=$x1,$y1
[/filter]
[effect]
apply_to=remove_ability
[abilities]
{ABILITY_SHADOW_VEIL_HELPER}
[/abilities]
[/effect]
[/object]
[/else]
[/if]
[/filter_condition]
[object]
take_only_once=no
silent=yes
duration=forever
[filter]
x,y=$x1,$y1
[/filter]
[effect]
apply_to=new_ability
[abilities]
{ABILITY_SHADOW_VEIL_HELPER}
[/abilities]
[/effect]
[/object]
[/event]
[event]
name=moveto
first_time_only=no
[filter]
side=1
race=undead
ability=did_shadow_veil_helper
[/filter]
[filter_condition]
[not]
[have_unit]
x,y=$x1,$y1
[filter_location]
radius=5
[and]
[filter]
ability=did_shadow_veil
side=1
[/filter]
[/and]
[/filter_location]
[/have_unit]
[/not]
[/filter_condition]
[object]
take_only_once=no
silent=yes
duration=forever
[filter]
x,y=$x1,$y1
[/filter]
[effect]
apply_to=remove_ability
[abilities]
{ABILITY_SHADOW_VEIL_HELPER}
[/abilities]
[/effect]
[/object]
[/event]
#enddef