Jump to content
Sign in to follow this  

Undead creatures are erroneously immune to Lightning Bolt

Recommended Posts

As reported here. Judging by the adjacent entries, it seems like one of the developers made a typo and entered SPWI308 (Lightning Bolt) instead of SPWI306 (Hold Person) into the ring which grants undead creatures their innate immunities. Here's the fix:


// Undead creatures are erroneously immune to Lightning Bolt instead of Hold Person

COPY_EXISTING ~ring95.itm~ ~override~ // undead immunity ring
PATCH_IF (%SOURCE_SIZE% > 0x71) THEN BEGIN // file size sanity check
READ_LONG   0x6a "fx_off"
READ_SHORT  0x70 "fx_num"
 FOR (index = 0; index < fx_num; index = index + 1) BEGIN
READ_SHORT ("%fx_off%" +		("%index%" * 0x30)) "opcode"
READ_ASCII ("%fx_off%" + 0x14 + ("%index%" * 0x30)) "resref"
PATCH_IF (("%opcode%" = 206) AND ("%resref%" STRING_EQUAL_CASE ~SPWI308~)) BEGIN // Lightning Bolt
  WRITE_ASCII ("%fx_off%" + 0x14 + ("%index%" * 0x30)) "SPWI306" #8 // Hold Person

Edited by aVENGER_(RR)

Share this post

Link to post
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...