Users browsing this thread: 1 Guest(s)
"Instant Death" over-rides "Miss if prot. from ailments"
07-29-2013, 05:04 PM
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.
The following 3 users say Thank You to Drakkhen for this post:
• Gi Nattak (07-29-2013),ReturnerScum (01-18-2016), Warrax (09-08-2022)
• Gi Nattak (07-29-2013),
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)