[(BGEE, BG2) Bug] Destroy gold wild surge
The wild surge that destroys gold is supposed to be self-targeted, but instead was affecting the original spell target.
// wild surge: destroy gold is supposed to target self, not present target
COPY_EXISTING ~spwm117.spl~ ~override~
PATCH_IF (SOURCE_SIZE > 0x71) THEN BEGIN // protects against invalid files
READ_LONG 0x64 "abil_off"
READ_SHORT 0x68 "abil_num"
READ_LONG 0x6a "fx_off"
WHILE ("%abil_num%" > 0) BEGIN
SET "abil_num" = ("%abil_num%" - 1)
READ_SHORT ("%abil_off%" + (0x28 * "%abil_num%")) "type"
PATCH_IF ("%type%" = 1) BEGIN // if melee
READ_SHORT ("%abil_off%" + 0x1e + (0x28 * "%abil_num%")) "abil_fx_num"
READ_SHORT ("%abil_off%" + 0x20 + (0x28 * "%abil_num%")) "abil_fx_idx"
WHILE ("%abil_fx_num%" > 0) BEGIN
SET "abil_fx_num" = ("%abil_fx_num%" - 1)
WRITE_BYTE ("%fx_off%" + 0x02 + (0x30 * ("%abil_fx_idx%" + "%abil_fx_num%"))) 1 // target: self
END
END
END
END
BUT_ONLY_IF_IT_CHANGES
Post edited by Bhryaen on
1
Comments
Target of Remove Gold effect changed from "Preset target (2)" to "Self (1)".
This one's going to disappoint a LOT of Neera fans. lol