[(BG2, BGEE 0709) Bug] Potion of magic blocking
The potion of magic blocking is currently blocking spells of level 1-9. Per its description, it should only be blocking spells of levels 1-5.
Not that 6+ level spells are being thrown around much in BGEE, mind...
Not that 6+ level spells are being thrown around much in BGEE, mind...
// potion of magic blocking should only block up to level 5 spells, per description
COPY_EXISTING ~potn33.itm~ ~override~
LAUNCH_PATCH_FUNCTION ~DELETE_ITEM_EFFECT~ INT_VAR // delete existing 102 opcodes
opcode_to_delete = "102" // ac bonus
END
FOR (index = 1 ; index < 6 ; index = index + 1) BEGIN // build back 1-5
LAUNCH_PATCH_FUNCTION ~ADD_ITEM_EFFECT~ INT_VAR
opcode = "102" // display portrait icon
target = "1" // target self
resist_dispel = "1" // dispel/bypass MR
duration = "30" // duration
parameter1 = "%index%" // spell failure
type = "3" // magical abilities only
END
END
BUT_ONLY_IF_IT_CHANGES
Post edited by Bhryaen on
2
Comments
@CamDawg: there is an opcode in this potion that removes all current magic effects, shouldn't that work only up to level 5 too? The text says so, but in fact, all effects are removed.
I recruited a Candlekeep tutor into my party and had him drink a Potion of Magc Blocking (potn33). I then tried to cast Protection from Lightning on him (level 5) and it was resisted. Desintegrate (level 6) worked perfectly.
I hope this is a suitable test.