From d743a5b9f24106311c9506c515d7fb99dda05d7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Severin=20Gl=C3=B6ckner?= Date: Fri, 9 Nov 2018 00:45:45 +0100 Subject: [PATCH] NR S7: debug mode safety [ci skip] --- .../scenarios/07a_Settling_Disputes.cfg | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/data/campaigns/Northern_Rebirth/scenarios/07a_Settling_Disputes.cfg b/data/campaigns/Northern_Rebirth/scenarios/07a_Settling_Disputes.cfg index cb9616158c9..07573892a21 100644 --- a/data/campaigns/Northern_Rebirth/scenarios/07a_Settling_Disputes.cfg +++ b/data/campaigns/Northern_Rebirth/scenarios/07a_Settling_Disputes.cfg @@ -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