Fix Ambush Ability Does not Work in Bluff/Glutch Forest Terrain
Resolve https://github.com/wesnoth/wesnoth/issues/8512 issue
This commit is contained in:
parent
a159b918e2
commit
77cd2b7b2e
1 changed files with 4 additions and 2 deletions
|
@ -289,9 +289,10 @@ Any units adjacent to this unit will fight as if it were dusk when it is night,
|
|||
Enemy units cannot see this unit while it is in forest, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
|
||||
special_note={INTERNAL:SPECIAL_NOTES_AMBUSH}
|
||||
affect_self=yes
|
||||
# ^Qhh* and ^Qhu* are the bluff and glutch terrains, like are already overlay the variant forest must be include in filter with 'traditionnals' forests terrains
|
||||
[filter]
|
||||
[filter_location]
|
||||
terrain=*^F*
|
||||
terrain=*^F*,*^Qhhf,*^Qhuf
|
||||
[/filter_location]
|
||||
[/filter]
|
||||
[/hides]
|
||||
|
@ -308,9 +309,10 @@ Enemy units cannot see this unit while it is in forest, except if they have unit
|
|||
|
||||
Enemy units cannot see this unit while it is resting in forest or sand, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
|
||||
affect_self=yes
|
||||
# ^Qhh* and ^Qhu* are the bluff and glutch terrains, like are already overlay the variant forest must be include in filter with 'traditionnals' forests terrains
|
||||
[filter]
|
||||
[filter_location]
|
||||
terrain=*^F*,D*^*
|
||||
terrain=*^F*,*^Qhhf,*^Qhuf,D*^*
|
||||
[/filter_location]
|
||||
# could not get resting filter to work, maybe this is better, maybe not
|
||||
formula="if(self.moves = self.max_moves, 1, 0)"
|
||||
|
|
Loading…
Add table
Reference in a new issue