Fixed recalling sometimes invalidating undo
This commit is contained in:
parent
9ade86541d
commit
f5355c3ff7
1 changed files with 36 additions and 28 deletions
|
@ -120,39 +120,47 @@
|
|||
[/event]
|
||||
|
||||
[event]
|
||||
name=prerecall
|
||||
first_time_only=no
|
||||
name=start
|
||||
|
||||
[filter]
|
||||
side={SIDES}
|
||||
[store_unit]
|
||||
[filter]
|
||||
side={SIDES}
|
||||
|
||||
[not]
|
||||
[filter_wml]
|
||||
[modifications]
|
||||
[trait]
|
||||
id=loyal
|
||||
[/trait]
|
||||
[/modifications]
|
||||
[/filter_wml]
|
||||
[/not]
|
||||
[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]
|
||||
[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}
|
||||
kill=yes
|
||||
variable=horde_units
|
||||
[/store_unit]
|
||||
|
||||
[unstore_unit]
|
||||
variable=unit
|
||||
find_vacant=no
|
||||
[/unstore_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]
|
||||
|
|
Loading…
Add table
Reference in a new issue