[(BG1, BG2) BUG] Shield Amulet redux (0813)
Per its description, the shield amulet is supposed to duplicate the effects of the spell 'shield'. Shield protects vs. magic missile, but the amulet lacks this protection. Fix:
// amulet of shield not protecting against MM
COPY_EXISTING ~amul15.itm~ ~override~
LAUNCH_PATCH_FUNCTION ~ADD_ITEM_EFFECT~ INT_VAR
opcode = "206" // protection from spell
target = "1" // target self
resist_dispel = "1" // dispel/bypass MR
duration = "300" // duration
parameter1 = "0xffffffff" // strref -1
type = "3" // only add to mag header
STR_VAR resource = "spwi112"
END
LAUNCH_PATCH_FUNCTION ~ADD_ITEM_EFFECT~ INT_VAR
opcode = "139" // display string
target = "1" // target self
resist_dispel = "1" // dispel/bypass MR
timing = "1" // instant/perm
parameter1 = "14771" // strref
type = "3" // only add to mag header
END
BUT_ONLY
Post edited by Bhryaen on
1
Comments
With AMUL15 on but not activated, Magic Missile hits/ damages.
With AMUL15 on and activated, Magic Missile vanishes at its target.
@CamDawg
I can't move the discussion because vanilla forums doesn't like my connection for some reason, but can't you edit your opening post and move the topic?
Besides, Seth is my favourite dev, he hunted down some really nasty crashers.
For ingame test: ar0505 (1186, 477) could be used.
Used the same trap as Avenger_teambg to test this.