Skip to content

Implements Turn Undead and expands monster immunity handling based on the legacy immunity system. - #67

Open
Plateaus wants to merge 83 commits into
metavert-io:mainfrom
Plateaus:turn-undead
Open

Plateaus wants to merge 83 commits into
metavert-io:mainfrom
Plateaus:turn-undead

Conversation

@Plateaus

@Plateaus Plateaus commented Oct 2, 2026

Copy link
Copy Markdown

Changes include:

  • Added named constants for monster immunity types.
  • Added support for undead-affecting damage using IMMUNITY 8.
  • IMMUNITY 8 retains its special legacy behavior:
    • 3 = lesser undead
    • 2 = greater undead
    • 1 = extremely powerful undead
    • 0/default = unaffected by undead-targeting effects
  • Implemented Turn Undead I, II, and III tier restrictions.
  • Turn success is based on the caster's Spellcraft skill and the target's undead power.
  • More powerful undead receive progressively larger penalties to the caster's turn chance.
  • Successfully turned monsters use the existing monster flee behavior.
  • Added player feedback for successful and resisted turning attempts.
  • Adjusted Turn Undead damage downward to distinguish it from Destroy Undead, since Turn Undead also provides a flee effect.
  • Added/updated undead damage typing for Turn Undead and Destroy Undead spells.
  • Corrected/centralized damage immunity handling using the documented monster immunity types.
  • Updated casting restrictions to permit casting while carrying a shield, while still preventing casting with a wielded weapon or non-shield offhand item.
  • Fixed weapon attack display naming so the actual attacking weapon instance is used, preserving state/adjectives such as "damaged" on magical weapons.

Turn Undead now separates three mechanics:

  • Spell rank determines which undead power tiers can be turned.
  • Spellcraft determines the caster's chance of successfully turning an eligible target.
  • IMMUNITY 8 determines the undead's power and modifies both undead-targeting damage and turning difficulty.

Magic resistance remains a separate check from the Turn Undead roll.

csanburn1966 and others added 30 commits May 1, 2026 07:52
Run item preverb scripts for GET and DROP
Run item preverb scripts for equipment commands
Parse added 30 commits September 2, 2026 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants