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] Armor of faith bugs (0813)

CamDawgCamDawg Member, Developer Posts: 3,394
edited August 2012 in Fixed
Armor of Faith currently provides no damage reduction for elemental attacks (acid, cold, fire, electricity) and provides double protection against missiles. Per its description, it should be protecting against all damage equally:
// armor of faith not covering acid, cold, fire, electricity, doubles against missiles
COPY_EXISTING ~sppr111.spl~ ~override~
READ_SHORT 0x68 "abil_num"
LAUNCH_PATCH_FUNCTION ~DELETE_SPELL_EFFECT~ INT_VAR
opcode_to_delete = "89" // missile resistance effect
END
FOR (index = 1 ; index < abil_num ; index = index + 1) BEGIN
PATCH_IF (index < 5) BEGIN SET "resist" = 5 END ELSE
PATCH_IF ((index < 10) AND (index > 4)) BEGIN SET "resist" = 10 END ELSE
PATCH_IF ((index < 15) AND (index > 9)) BEGIN SET "resist" = 15 END ELSE
PATCH_IF ((index < 20) AND (index > 14)) BEGIN SET "resist" = 20 END ELSE
BEGIN SET "resist" = 25 END
FOR (index2 = 27 ; index2 < 32 ; index2 = index2 + 1) BEGIN
PATCH_IF (index2 = 31) BEGIN
SET index2 = 89
END
LAUNCH_PATCH_FUNCTION ~ADD_SPELL_EFFECT~ INT_VAR
opcode = "%index2%" // protection from spell
target = "1" // target self
power = "5" // power
resist_dispel = "3" // dispel/bypass MR
duration = (24 + (6 * "%index%")) // duration
parameter1 = "%resist%" // resistance to damaga
header = "%index%" + 1 // restricts to current ability header
END
END
END
BUT_ONLY_IF_IT_CHANGES

Post edited by Bhryaen on
AndreaColombo

Comments

Sign In or Register to comment.