Skip to content

Commit

Permalink
TSG S4: improve magican's movement behaviour
Browse files Browse the repository at this point in the history
- the movement restriction won't be applied if the magican is not
  in the caslte (due to the one exception).
- As for the exception, it's not enough if the magican has only one
  unit left, but this unit has to be on the caslte.

To sum up, the magican never leaves the castle, unless he has
(before recruiting) one last unit which is on the castle. (Maybe
from last turn's recruiting).
In case he left the castle, he goes back next to the keep next turn,
as leaders usually do.

[ci skip]

(cherry-picked from commit d4a6df0)
  • Loading branch information
sevu committed Oct 7, 2018
1 parent ab125c5 commit a508f62
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion data/campaigns/The_South_Guard/scenarios/04_Vale_of_Tears.cfg
Expand Up @@ -160,7 +160,7 @@
[event]
name=side 2 turn refresh
first_time_only=no
# Exception to avoid the leader being passive even after he is basically defeated.
# Exception to avoid the leader being passive even after his army is defeated.
# If the leader recruited one unit last turn, they can leave the castle together.
[filter_condition]
[not]
Expand All @@ -169,6 +169,14 @@
canrecruit=no
count=1
[/have_unit]
[have_unit]
side=2
canrecruit=no
[filter_location]
terrain=C*^*
[/filter_location]
count=1
[/have_unit]
[/not]
[/filter_condition]

Expand All @@ -178,6 +186,11 @@
take_only_once=no
[filter]
id="Mal A'kai"
# Apply the movement restriction only if he is in the keep or castle,
# so he can still go back if he left due to the exception above.
[filter_location]
terrain=K*^*,C*^*
[/filter_location]
[/filter]
[effect]
apply_to=movement_costs
Expand Down

0 comments on commit a508f62

Please sign in to comment.