[(BG2, BGEE) Bug] Barkskin
Barkskin's AC bonus was incorrect when cast at miscellaneous levels (7, 13-15, 17-19).
// barkskin AC bonus incorrect at higher levels
COPY_EXISTING ~sppr202.spl~ ~override~
READ_LONG 0x64 "abil_off"
READ_SHORT 0x68 "abil_num"
READ_LONG 0x6a "fx_off"
FOR (index = 0 ; index < abil_num ; index = index + 1) BEGIN
READ_SHORT ("%abil_off%" + 0x10 + (0x28 * "%index%")) "min_level"
READ_SHORT ("%abil_off%" + 0x1e + (0x28 * "%index%")) "abil_fx_num"
READ_SHORT ("%abil_off%" + 0x20 + (0x28 * "%index%")) "abil_fx_idx"
FOR (index2 = 0 ; index2 < abil_fx_num ; index2 = index2 + 1) BEGIN
READ_SHORT ("%fx_off%" + (("%abil_fx_idx%" + "%index2%") * 0x30)) "opcode"
PATCH_IF ("%opcode%" = 0) BEGIN // ac bonus
WRITE_LONG ("%fx_off%" + 0x04 + (("%abil_fx_idx%" + "%index2%") * 0x30)) (6 - ("%min_level%" / 4)) // ((6 - (caster level/4), per descript
END
END
END
BUT_ONLY_IF_IT_CHANGES
Post edited by Bhryaen on
0
Comments
Barkskin set my 13 DEX Druid's AC to:
- AC 5 at level 7
- AC 3 at level 13-15
Couldn't test levels 17-19 because I ran out of HLA's to select and couldn't level up.