Skip to content

[(BGEE, BG2) Bug] Destroy gold wild surge

CamDawgCamDawg Member, Developer Posts: 3,438
edited August 2012 in Fixed
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
AndreaColombo

Comments

  • CorianderCoriander Member Posts: 1,667
    I'll put this in.
  • NathanNathan Member Posts: 1,007
    Verified, this has been integrated internally and should be present in the next build.
  • Avenger_teambgAvenger_teambg Member, Developer Posts: 5,862
    Confirmed fixed. The target is now correctly set.
  • BhryaenBhryaen Member Posts: 2,874
    edited August 2012
    Confirmed fixed:

    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
Sign In or Register to comment.