[(BG2) bug] One more Spook fix
Spook is still showing 'Panic' in the battle window even if the spell is ineffective due to magic resistance:
// spook's 'panic' string not properly quashed by MR
COPY_EXISTING ~spwi125.spl~ ~override~
READ_LONG 0x64 "abil_off"
READ_SHORT 0x68 "abil_num"
READ_LONG 0x6a "fx_off"
FOR ("index" = 0; "%index%" < "%abil_num%"; "index" = ("%index%" + 1)) BEGIN
READ_SHORT ("%abil_off%" + 0x1e + (0x28 * "%index%")) "abil_fx_num"
READ_SHORT ("%abil_off%" + 0x20 + (0x28 * "%index%")) "abil_fx_idx"
FOR (index2 = 0 ; index2 < abil_fx_num ; index2 = index2 + 1) BEGIN
WRITE_BYTE ("%fx_off%" + 0x0d + (0x30 * ("%index2%" + "%abil_fx_idx%"))) 1 // change to dispel, no bypass MR
END
END
BUT_ONLY_IF_IT_CHANGES
Post edited by Tanthalas on
1
Comments
If it should always play then it shouldn't be resistable, if it should play only when taking effect, then then it should have saving throw.
This is just nitpicking, no one will ever notice this.
It's especially pointless on a specific patch (it's really only useful for REGEXP patches) but old habits die hard.