NR S7: debug mode safety
[ci skip]
This commit is contained in:
parent
0e34455cfe
commit
d743a5b9f2
1 changed files with 19 additions and 3 deletions
|
@ -623,7 +623,7 @@
|
|||
[filter]
|
||||
id=Ro'Sothian
|
||||
[/filter]
|
||||
kill=no
|
||||
kill=yes
|
||||
variable=rosothian
|
||||
[/store_unit]
|
||||
{PLACE_IMAGE "units/undead-necromancers/lich.png~RC(magenta>green)~BLIT(items/cage.png)" 25 6}
|
||||
|
@ -666,7 +666,7 @@
|
|||
moves=full
|
||||
restore_attacks=yes
|
||||
[/heal_unit]
|
||||
{CLEAR_VARIABLE rosothian,heal_amount}
|
||||
{CLEAR_VARIABLE rosothian}
|
||||
|
||||
[message]
|
||||
speaker="Ro'Sothian"
|
||||
|
@ -834,7 +834,7 @@
|
|||
moves=full
|
||||
restore_attacks=yes
|
||||
[/heal_unit]
|
||||
{CLEAR_VARIABLE rosothian,heal_amount}
|
||||
{CLEAR_VARIABLE rosothian}
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
|
@ -933,6 +933,22 @@
|
|||
[event]
|
||||
name=victory
|
||||
|
||||
# Only for debug mode, in normal play the unit would have been unstored in the previous event
|
||||
[if]
|
||||
[not]
|
||||
[have_unit]
|
||||
id=Ro'Sothian
|
||||
[/have_unit]
|
||||
[/not]
|
||||
[then]
|
||||
[unstore_unit]
|
||||
variable=rosothian
|
||||
x,y=recall,recall
|
||||
[/unstore_unit]
|
||||
{CLEAR_VARIABLE rosothian}
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
# This complex code is used instead of [modify_unit] because it
|
||||
# - allows to add the loyal trait at first place in the trait list
|
||||
# - leaves the units on the field as is, the changes are only visible in the next scenario
|
||||
|
|
Loading…
Add table
Reference in a new issue