From 92510d972b51e1deea8c0cc58580160d93f8b569 Mon Sep 17 00:00:00 2001 From: doug1234 Date: Wed, 4 Sep 2024 23:02:11 -0400 Subject: [PATCH] Add some comments to aasumar and tiefling raise dead fix. --- tpdatasrc/co8infra/scr/Spell379 - Raise Dead.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tpdatasrc/co8infra/scr/Spell379 - Raise Dead.py b/tpdatasrc/co8infra/scr/Spell379 - Raise Dead.py index 95c54a673..170844e03 100644 --- a/tpdatasrc/co8infra/scr/Spell379 - Raise Dead.py +++ b/tpdatasrc/co8infra/scr/Spell379 - Raise Dead.py @@ -14,6 +14,7 @@ def OnSpellEffect( spell ): spell.duration = 0 target_item = spell.target_list[0] + #For aasumars and tieflings temporarily remove the outsider tag so raise dead will work prevType = 0 if target_item.obj.is_category_type( mc_type_outsider ) and target_item.obj.is_category_subtype(mc_subtype_human): subrace = target_item.obj.stat_base_get(stat_subrace) @@ -72,6 +73,7 @@ def OnSpellEffect( spell ): spell.spell_end( spell.id, 1 ) + #Restore the outsider tag if necessary if prevType != 0: target_item = spell.target_list[0] target_item.obj.obj_set_int64(obj_f_critter_monster_category, prevType)