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