Skip to content

[(BG2, BGEE 0709) Bug] Potion of magic blocking

CamDawgCamDawg Member, Developer Posts: 3,438
edited August 2012 in Fixed
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...
// 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

Comments

  • CorianderCoriander Member Posts: 1,667
    I'll add this.
  • NathanNathan Member Posts: 1,007
    Verified, this has been integrated internally and should be present in the next build.
  • Avenger_teambgAvenger_teambg Member, Developer Posts: 5,862
    Confirmed the removal of #102 (protection from spell levels) opcodes above level 5
    @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.
  • CamDawgCamDawg Member, Developer Posts: 3,438
    As I recall, the dispel opcode can only be adjusted to always dispel or use caster's/arbitrary level in the dispel formula. I don't think we can target it at power < 6.
  • TanthalasTanthalas Member Posts: 6,738
    Confirmed Fixed in Build 0803

    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.
Sign In or Register to comment.