Prev: 53484 Up: Map Next: 53550
53526: Check if a missile fired by a creature has hit Maroc, and if so reduce his energy
Follows 'missile deflection' checks at 53403 that checks for collision with an effective shield spell
Check if it's a creature-launched missile, or a Maroc-launched missile:
53526 LD A,(60227) Object type
53529 CP 8 Object type 8 = Missile fired by Maroc
53531 JR Z,53550 If it's one of Maroc's missiles, skip the next check
53533 LD C,0 Collision type to check = 0 (collision with Maroc)
53535 CALL 57293 Call collision check routine
53538 CP 0
53540 JR Z,53550 A register returned with 1 if a collision is detected (0 if not)
A creature missile/bolt has hit Maroc. The previous check in the routine at 53403 has already confirmed Maroc does not have a protective shield spell against this missile/bolt, so it's going to damage his energy:
53542 LD A,(60322) Value to decrease Maroc's energy by (varies by missile type)
53545 CALL 58316 Decrease Maroc's energy
53548 JR 53569
Prev: 53484 Up: Map Next: 53550