Skip to content

[(BGEE, BG2) bug] Remove paralysis

CamDawgCamDawg Member, Developer Posts: 3,438
edited September 2012 in Fixed
Remove paralysis removes portrait icons for stun and hold from the caster instead of the spell's target.
// remove paralysis not removing icons on target
COPY_EXISTING ~sppr308.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%" + 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%" + (0x30 * ("%abil_fx_idx%" + "%index2%"))) "opcode"
PATCH_IF ("%opcode%" = 240) BEGIN // remove icon opcode
WRITE_BYTE ("%fx_off%" + 0x02 + (0x30 * ("%abil_fx_idx%" + "%index2%"))) 2 // target: preset target
END
END
END
BUT_ONLY_IF_IT_CHANGES
Post edited by Bhryaen on
AndreaColombo

Comments

  • Avenger_teambgAvenger_teambg Member, Developer Posts: 5,862
    Confirmed fixed.
  • BhryaenBhryaen Member Posts: 2,874
    Confirmed Fixed:

    Remove portrait icon for "Stun" and "Held" (Effects #5, 6) now have Target = "Preset target" rather than (as in vBG2) "Self"
Sign In or Register to comment.