update DID_SHADOW_VEIL_HANDLER in DID campaign (#5094)
* update DID_SHADOW_VEIL_HANDLER implementation
This commit is contained in:
parent
914dfb50f1
commit
88fbe11457
1 changed files with 67 additions and 59 deletions
|
@ -137,90 +137,98 @@
|
|||
[/dummy]
|
||||
#enddef
|
||||
|
||||
#define ABILITY_SHADOW_VEIL_HELPER
|
||||
#define ABILITY_SHADOW_VEIL_HELPER SIDE
|
||||
[hides]
|
||||
id=did_shadow_veil_helper
|
||||
affect_self=yes
|
||||
name= _ "veiled"
|
||||
description= _ "This unit is hidden."
|
||||
[filter]
|
||||
[filter_location]
|
||||
radius=5
|
||||
[filter]
|
||||
ability=did_shadow_veil
|
||||
[filter_side]
|
||||
[allied_with]
|
||||
side={SIDE}
|
||||
[/allied_with]
|
||||
[/filter_side]
|
||||
[/filter]
|
||||
[/filter_location]
|
||||
[/filter]
|
||||
[/hides]
|
||||
#enddef
|
||||
|
||||
#define DID_SHADOW_VEIL_HANDLER
|
||||
[event]
|
||||
name=moveto
|
||||
id=did_shadow_veil_unit_placed
|
||||
name=unit placed
|
||||
first_time_only=no
|
||||
[filter]
|
||||
side=1
|
||||
race=undead
|
||||
[not]
|
||||
ability=did_shadow_veil_helper
|
||||
[/not]
|
||||
[/filter]
|
||||
[filter_condition]
|
||||
[have_unit]
|
||||
x,y=$x1,$y1
|
||||
[filter_location]
|
||||
radius=5
|
||||
[and]
|
||||
[filter]
|
||||
ability=did_shadow_veil
|
||||
side=1
|
||||
[/filter]
|
||||
[/and]
|
||||
[/filter_location]
|
||||
ability=did_shadow_veil
|
||||
side=1
|
||||
[/have_unit]
|
||||
[/filter_condition]
|
||||
[object]
|
||||
take_only_once=no
|
||||
silent=yes
|
||||
duration=forever
|
||||
[modify_unit]
|
||||
[filter]
|
||||
x,y=$x1,$y1
|
||||
[not]
|
||||
ability=did_shadow_veil_helper
|
||||
[or]
|
||||
ability=did_shadow_veil
|
||||
[/or]
|
||||
[/not]
|
||||
[/filter]
|
||||
[effect]
|
||||
apply_to=new_ability
|
||||
[abilities]
|
||||
{ABILITY_SHADOW_VEIL_HELPER}
|
||||
[/abilities]
|
||||
[/effect]
|
||||
[/object]
|
||||
[object]
|
||||
duration=scenario
|
||||
[effect]
|
||||
apply_to=new_ability
|
||||
[abilities]
|
||||
{ABILITY_SHADOW_VEIL_HELPER $unit.side}
|
||||
[/abilities]
|
||||
[/effect]
|
||||
[/object]
|
||||
[/modify_unit]
|
||||
[/event]
|
||||
[event]
|
||||
name=moveto
|
||||
first_time_only=no
|
||||
id=did_shadow_veil_malkeshar
|
||||
name=post advance
|
||||
first_time_only=yes
|
||||
[filter]
|
||||
side=1
|
||||
race=undead
|
||||
ability=did_shadow_veil_helper
|
||||
type=Mal Keshar
|
||||
ability=did_shadow_veil
|
||||
[/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
|
||||
[modify_unit]
|
||||
[filter]
|
||||
x,y=$x1,$y1
|
||||
race=undead
|
||||
[not]
|
||||
ability=did_shadow_veil_helper
|
||||
[or]
|
||||
ability=did_shadow_veil
|
||||
[/or]
|
||||
[/not]
|
||||
[filter_side]
|
||||
[allied_with]
|
||||
side=$unit.side
|
||||
[/allied_with]
|
||||
[/filter_side]
|
||||
[/filter]
|
||||
[effect]
|
||||
apply_to=remove_ability
|
||||
[abilities]
|
||||
{ABILITY_SHADOW_VEIL_HELPER}
|
||||
[/abilities]
|
||||
[/effect]
|
||||
[/object]
|
||||
[object]
|
||||
take_only_once=no
|
||||
duration=scenario
|
||||
[effect]
|
||||
apply_to=new_ability
|
||||
[abilities]
|
||||
{ABILITY_SHADOW_VEIL_HELPER $this_unit.side}
|
||||
[/abilities]
|
||||
[/effect]
|
||||
[/object]
|
||||
[/modify_unit]
|
||||
[/event]
|
||||
#enddef
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue