Skip to content

Commit

Permalink
TRoW S22: Fix win and defeat conditions
Browse files Browse the repository at this point in the history
This makes sure that when Jevyan dies, we check for Aethyr's
presence before doing anything, so the player loses immediately
if he's alive.
Furthermore, we must hide the last orc leader, or his death will
make the player lose.
  • Loading branch information
DisherProject authored and GregoryLundberg committed Oct 18, 2018
1 parent b911e9a commit dd24dd6
Showing 1 changed file with 15 additions and 3 deletions.
Expand Up @@ -539,6 +539,11 @@
canrecruit=yes
count=2-4
[/have_unit]
[not]
[have_unit]
id=Commander Aethyr
[/have_unit]
[/not]
[/filter_condition]

[message]
Expand Down Expand Up @@ -635,12 +640,20 @@
id=Lich-Lord Jevyan
[/have_unit]
[/not]
[not]
[have_unit]
id=Commander Aethyr
[/have_unit]
[/not]
[/filter_condition]

[store_unit]
[filter]
side=3,4,5,6
canrecruit=yes
[not]
x,y=$x1,$y1
[/not]
[/filter]

kill=no
Expand Down Expand Up @@ -723,11 +736,10 @@
[/case]
[/switch]

[kill]
[hide_unit]
side=$last_orc_leader.side
canrecruit=yes
fire_event=no
[/kill]
[/hide_unit]

[move_unit_fake]
side=$last_orc_leader.side
Expand Down

0 comments on commit dd24dd6

Please sign in to comment.