Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Axis & Allies 1942 Online is now available in Early Access! Buy it on Steam. The FAQ is available.
New Premium Module: Tyrants of the Moonsea! Read More
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

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

CamDawgCamDawg Member, Developer Posts: 3,394
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
AndreaColomboBhryaen

Comments

Sign In or Register to comment.