Skip to content

Commit

Permalink
Fixed recalling sometimes invalidating undo
Browse files Browse the repository at this point in the history
  • Loading branch information
ln-zookeeper committed May 6, 2014
1 parent 9ade865 commit f5355c3
Showing 1 changed file with 39 additions and 31 deletions.
70 changes: 39 additions & 31 deletions data/campaigns/Son_Of_The_Black_Eye/utils/utils.cfg
Expand Up @@ -120,39 +120,47 @@
[/event]

[event]
name=prerecall
first_time_only=no

[filter]
side={SIDES}
name=start

[not]
[filter_wml]
[modifications]
[trait]
id=loyal
[/trait]
[/modifications]
[/filter_wml]
[/not]

[not]
[filter_wml]
[variables]
great_horde_upkeep_mod_applied=yes
[/variables]
[/filter_wml]
[/not]
[/filter]

{VARIABLE unit.upkeep $unit.level}
{VARIABLE_OP unit.upkeep sub 1}
{VARIABLE unit.variables.great_horde_upkeep_mod_applied yes}
[store_unit]
[filter]
side={SIDES}

[not]
[filter_wml]
[modifications]
[trait]
id=loyal
[/trait]
[/modifications]
[/filter_wml]
[/not]

[not]
[filter_wml]
[variables]
great_horde_upkeep_mod_applied=yes
[/variables]
[/filter_wml]
[/not]
[/filter]

[unstore_unit]
variable=unit
find_vacant=no
[/unstore_unit]
kill=yes
variable=horde_units
[/store_unit]

{FOREACH horde_units i}
{VARIABLE horde_units[$i].upkeep $horde_units[$i].level}
{VARIABLE_OP horde_units[$i].upkeep sub 1}
{VARIABLE horde_units[$i].variables.great_horde_upkeep_mod_applied yes}

[unstore_unit]
variable=horde_units[$i]
find_vacant=no
[/unstore_unit]
{NEXT i}

{CLEAR_VARIABLE horde_units}
[/event]

[event]
Expand Down

0 comments on commit f5355c3

Please sign in to comment.