"Instant Death" over-rides "Miss if prot. from ailments"
#7
Code:
C2/224B: AD A2 11     LDA $11A2
C2/224E: 89 02        BIT #$02      (Check for spell miss if death prot.)
C2/2250: F0 07        BEQ $2259     (Branch if not ^)
C2/2252: B9 A1 3A     LDA $3AA1,Y
C2/2255: 89 04        BIT #$04
C2/2257: D0 5C        BNE $22B5     (Always miss if Prot. from death)

Replace LDA $3AA1,Y with a JSR to some free space and put the following code there:

Code:
AD A7 11       LDA $11A7    (Attack's Special Byte 3)
89 08          BIT #$08
D0 05          BNE $--
B9 95 3C       LDA $3C95,y    (Target's Special Byte 3)
4A             LSR
60             RTS

B9 A1 3A       LDA $3AA1,y    (Special Properties)
60             RTS

With this change you can set the first ? bit of Special 3 (Right under "If hits, text") in a spell's data which will signal to check the ? bit between "No Name" and "Human" in the monster's data instead of checking for Death Prot.
Reply


Messages In This Thread
RE: "Instant Death" over-rides "Miss if prot. from ailments" - by Drakkhen - 07-29-2013, 05:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Possible solution to the sap death bug Bropedio 23 17,529 01-23-2021, 10:55 PM
Last Post: C-Dude
  [Bug?] Remove Death Status and "Target Dead Party Member" Intertwined C-Dude 2 3,118 01-04-2019, 02:39 PM
Last Post: C-Dude
  "Miss" in Battle Antamaru 7 7,225 12-26-2017, 02:50 PM
Last Post: assassin
  Miss if targeted enemy dies? pjmcphee87 7 8,950 01-25-2012, 02:01 AM
Last Post: madsiur

Forum Jump:


Users browsing this thread: 1 Guest(s)