Skip to content

Commit

Permalink
Use WFL for teleport ability to avoid requiring delayed variable subs…
Browse files Browse the repository at this point in the history
…titution
  • Loading branch information
CelticMinstrel committed Jun 20, 2017
1 parent 3a84922 commit a3a2196
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions data/core/macros/abilities.cfg
Expand Up @@ -203,23 +203,16 @@ Any units adjacent to this unit will fight as if it were dusk when it is night,
id=village_teleport
[source]
terrain=*^V*
owner_side=$teleport_unit.side
[not]
[filter]
[not]
id=$teleport_unit.id
[/not]
[/filter]
[/not]
formula="
owner = teleport_unit.side and (unit = teleport_unit or not unit)
where
unit = unit_at(x, y)
"
[/source]

[target]
terrain=*^V*
owner_side=$teleport_unit.side
[not]
[filter]
[/filter]
[/not]
formula="owner = teleport_unit.side and not unit_at(x, y)"
[/target]

[filter]
Expand Down

0 comments on commit a3a2196

Please sign in to comment.