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!

[(BG1, BG2) BUG] Shield Amulet redux (0813)

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

Comments

Sign In or Register to comment.