Skip to content

Commit fd11135

Browse files
committed
HttT: disable Lisar's PAL recolor on the overworld
1 parent 07e1452 commit fd11135

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

data/campaigns/Heir_To_The_Throne/scenarios/00_The_Great_Continent.cfg

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,16 @@
174174
[event]
175175
name=prestart
176176
{NAMED_UNIT 19 $stored_Lisar.type 98 58 fake_lisar _"Li’sar" canrecruit=yes} {ROLE dummy_leader}
177-
{IF} {VARIABLE_CONDITIONAL status_s31 not_equals completed} {THEN(
178-
[modify_side]
179-
side=19
180-
hidden=yes
181-
[/modify_side]
182-
)} {/IF}
177+
{IF_VAR status_s31 not_equals completed (
178+
[then]
179+
[modify_side]
180+
side=19
181+
hidden=yes
182+
[/modify_side]
183+
[/then]
184+
)}
185+
186+
# "role=dummy_leader" is also used in unified_characters.cfg for Li'sar's exacting ability recolors
183187

184188
# create dummy leaders for all sides, so we can capture villages even if there's no leader on the map
185189
{GENERIC_UNIT 2 Spearman 98 58} {LEADER} {ROLE dummy_leader}

data/campaigns/Heir_To_The_Throne/utils/unified_characters.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,14 @@ red#endarg # once she joins Konrad, use red instead of lisarcolor, to make her e
195195
[/or]
196196
[/filter_side]
197197
[/filter]
198+
[filter_condition]
199+
[not]
200+
[have_unit]
201+
# don't recolor any units if we're on the overworld
202+
role=dummy_leader
203+
[/have_unit]
204+
[/not]
205+
[/filter_condition]
198206
[object]
199207
{FILTER id=$unit.id}
200208
[effect]

0 commit comments

Comments
 (0)