Skip to content

Commit

Permalink
Merge pull request #764 from doug1234/UnseenSeerRemoveKnownSpells
Browse files Browse the repository at this point in the history
Unseen seer remove known spells
  • Loading branch information
doug1234 authored Feb 27, 2024
2 parents c8c084b + 6e78cc5 commit 5b4e023
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tpdatasrc/tpgamefiles/scr/tpModifiers/unseen_seer.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ def AdvancedLearningRadial(attachee, args, evt_obj):
spEntry = tpdp.SpellEntry(spell)
minLevel = spEntry.get_lowest_spell_level()
if minLevel <= maxLevel and spEntry.spell_school_enum == Divination:
if not attachee.is_spell_known(spell, extendedClass):
#Using | 0x80 changes from a stat to a class code
if not attachee.is_spell_known(spell, extendedClass | 0x80):
spStore = PySpellStore(spell, extendedClass, minLevel)
spell_node = tpdp.RadialMenuEntryPythonAction(spStore, D20A_PYTHON_ACTION, unseenSeerAdvancedLearningEnum, i)
spell_node.add_as_child(attachee, spell_level_ids[spStore.spell_level])
Expand Down

0 comments on commit 5b4e023

Please sign in to comment.