Skip to content

[Known 9765] Opcodes 146/148 and Dead Magic

GalactygonGalactygon Member, Developer Posts: 412
edited September 2014 in BGII:EE Bugs (v1.2.2030)
This came up when I was testing for wild surges.
http://forum.baldursgate.com/discussion/34915/opcodes-146-148-and-wild-surge

Existing behavior: Both opcodes 146 (cast spell at creature) and 148 (cast spell at point) are unaffected by dead magic (when opcode 60 is used and param2 = 3/4/5) even if param2 of opcode 146/148 is set to 0 (casting type = normal). In that way, you could fire off spells from scrolls in dead magic areas.

Expected behavior: scrolls would be affected by dead magic and fail to cast. More literally, if param2 of opcode 60 is set to 3, 4 or 5, then it affects spells cast via opcodes 146 and 148 if their param2 is set to 0 (cast normally). On the other hand, if param2 of opcodes 146 and 148 are set to 1 (cast instantly) then that shouldn't be affected by dead magic.

How to reproduce this: CLUA yourself to AR3004 and attempt to use any spell scroll.
Post edited by Gate70 on

Comments

  • kjeronkjeron Member Posts: 2,368
    A possible solution to this would be to have these areas of Dead Magic also apply Opcode 181: disallow item type, category 11: scrolls, restriction:use. This would avoid any unintended side affects of altering the opcodes.
  • GalactygonGalactygon Member, Developer Posts: 412
    Possibly yes, and include other items (wands, etc) that do not derive their effects via a 146/148.
Sign In or Register to comment.