Skip to content

[(BG2) bug] Wild magic/dead magic vs. innate abilities

CamDawgCamDawg Member, Developer Posts: 3,438
edited November 2012 in Fixed
Several innate abilities are not flagged as non-magical abilities, allowing them to be affected by wild magic and/or dead magic zones:
// Non-magical innate abilities shouldn't be affected by Wild Magic and Dead Magic zones (aVENGER)
ACTION_FOR_EACH ~file~ IN // for each of the following files
~spcl152~ // Barbarian Rage
~spcl211~ // Paladin Lay On Hands
~spcl321d~ // Berserker Enrage secondary effect (becoming winded)
~spcl611~ // Druid Shapeshift Brown Bear
~spcl612~ // Druid Shapeshift Wolf
~spcl613~ // Druid Shapeshift Black Bear
~spcl632~ // Avenger Shapeshift Spider
~spcl633~ // Avenger Shapeshift Baby Wyvern
~spcl634~ // Avenger Shapeshift Fire Salamander
~spcl643~ // Shapeshifter Werewolf Transformation
~spcl644~ // Shapeshifter Greater Werewolf Transformation
~spcl815~ // Monk Lay On Hands
~sppr731~ // Druid Fire Elemental Transformation
~sppr732~ // Druid Earth Elemental Transformation
BEGIN // execute the following
ACTION_IF FILE_EXISTS_IN_GAME ~%file%.spl~ BEGIN // if the designated file with a SPL extension exists
COPY_EXISTING ~%file%.spl~ ~override~
PATCH_IF (%SOURCE_SIZE% > 0x71) THEN BEGIN // file size sanity check (filters out 0 byte files i.e. ALLOW_MISSING)
READ_BYTE 0x19 "flags"
WRITE_BYTE 0x19 ("%flags%" BOR 0b01000000) // add the Non-Magical flag
END // ends file size check
BUT_ONLY_IF_IT_CHANGES
END // ends ACTION_IF FILE_EXISTS_IN_GAME block
END // ends ACTION_FOR_EACH block
Post edited by Tanthalas on

Comments

  • TanthalasTanthalas Member Posts: 6,738
    @Bhryaen

    This is also pretty much a list of stuff that shouldn't be affected by Silence.
  • Avenger_teambgAvenger_teambg Member, Developer Posts: 5,862
    edited August 2012
    Hmm, i'm not sure about dead magic vs these, except maybe rage.
    On the other hand, i agree that silence shouldn't block these.
  • Avenger_teambgAvenger_teambg Member, Developer Posts: 5,862
    There is a separate flag for silence and wild magic, so there is no conflict.
  • CamDawgCamDawg Member, Developer Posts: 3,438
    These are already fixed in 0924.
Sign In or Register to comment.