From 3c77e4abb18c3561ccf1a5af9575647de3d83d3c Mon Sep 17 00:00:00 2001 From: subtledoctor Date: Thu, 13 May 2021 13:30:45 -0400 Subject: [PATCH] 0.9.11 installs on EE v2.6 --- TomeAndBlood/comp/setup_spell_tweaks.tpa | 3 ++- TomeAndBlood/lib/spell_evasion.tpa | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TomeAndBlood/comp/setup_spell_tweaks.tpa b/TomeAndBlood/comp/setup_spell_tweaks.tpa index 103b522..5551784 100755 --- a/TomeAndBlood/comp/setup_spell_tweaks.tpa +++ b/TomeAndBlood/comp/setup_spell_tweaks.tpa @@ -680,7 +680,8 @@ END COPY_EXISTING ~spell.ids~ ~override~ REPLACE_TEXTUALLY ~WIZARD_IDENTIFY~ ~WIZARD_IDENTIFY_OLD~ -ADD_SPELL ~TomeAndBlood/data/spell_tweaks/d5tb110.spl~ 2 %identify_level% WIZARD_IDENTIFY +ADD_SPELL ~TomeAndBlood/data/spell_tweaks/d5tb110.spl~ 2 %identify_level% ~WIZARD_IDENTIFY~ + LAF RES_NUM_OF_SPELL_NAME STR_VAR spell_name = ~WIZARD_IDENTIFY~ RET spell_res diff --git a/TomeAndBlood/lib/spell_evasion.tpa b/TomeAndBlood/lib/spell_evasion.tpa index c29b654..4fdf72e 100755 --- a/TomeAndBlood/lib/spell_evasion.tpa +++ b/TomeAndBlood/lib/spell_evasion.tpa @@ -99,7 +99,7 @@ DEFINE_ACTION_FUNCTION add_evade_spell READ_2DA_ENTRIES_NOW rows cols FOR (row = 1; row < rows; ++row) BEGIN READ_2DA_ENTRY_FORMER rows row 0 ~stat~ - PATCH_IF ~%stat%~ STRING_EQUAL_CASE ~STATE~ BEGIN + PATCH_IF (~%stat%~ STRING_EQUAL_CASE ~STATE~) OR (~%stat%~ STRING_CONTAINS_REGEXP ~STATEBITS=n~ = 0) BEGIN SET state_row = %row% END END