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!

[(BGEE, BG2) Bug] Miscast magic portrait icons

CamDawgCamDawg Member, Developer Posts: 3,394
edited August 2012 in Fixed
Currently, various spells will cause a chance for spells to fail but do not show a portrait icon to indicate this effect. This patch will add the miscast magic icon to these spells:
// miscast effects not accompanied by miscast icon
COPY_EXISTING ~spcl132.spl~ ~override~ // 25%, wrong icon (spell failure)
LAUNCH_PATCH_FUNCTION ~DELETE_SPELL_EFFECT~ INT_VAR
opcode_to_delete = "142" // delete existing portrait icons
END
LAUNCH_PATCH_FUNCTION ~ADD_SPELL_EFFECT~ INT_VAR
opcode = 142 // display portrait icon
target = 2 // preset target
resist_dispel = 2 // not dispel/bypass MR
duration = 90 // duration
parameter2 = 105 // icon: miscast magic
END
BUT_ONLY

// miscast effects not accompanied by miscast icon
COPY_EXISTING ~sppr310.spl~ ~override~ // 80%, no icon
LAUNCH_PATCH_FUNCTION ~ADD_SPELL_EFFECT~ INT_VAR
opcode = 142 // display portrait icon
target = 2 // preset target
resist_dispel = 1 // dispel/not bypass MR
duration = 60 // duration
power = 3 // power
parameter2 = 105 // icon: miscast magic
savingthrow = 1 // save vs spells
savebonus = 0xfffffffe // save at -2
END
BUT_ONLY

// miscast effects not accompanied by miscast icon
COPY_EXISTING ~sppr319.spl~ ~override~ // 80%, no icon
LAUNCH_PATCH_FUNCTION ~ADD_SPELL_EFFECT~ INT_VAR
opcode = 142 // display portrait icon
target = 2 // preset target
resist_dispel = 1 // dispel/not bypass MR
duration = 42 // duration
power = 3 // power
parameter2 = 105 // icon: miscast magic
savingthrow = 2 // save vs breath
savebonus = 0xfffffffc // save at -4
END
BUT_ONLY

// miscast effects not accompanied by miscast icon
COPY_EXISTING ~sppr986.spl~ ~override~ // 80%, no icon
READ_SHORT 0x68 "abil_num"
LAUNCH_PATCH_FUNCTION ~ADD_SPELL_EFFECT~ INT_VAR
opcode = 142 // display portrait icon
target = 2 // preset target
resist_dispel = 1 // dispel/not bypass MR
duration = 100 // duration
power = 3 // power
parameter2 = 105 // icon: miscast magic
savingthrow = 1 // save vs spells
savebonus = 0xfffffffe // save at -2
END
BUT_ONLY

Post edited by Bhryaen on
AndreaColomboBhryaen

Comments

Sign In or Register to comment.