Prev: 53323 Up: Map Next: 53372
53349: Creature has collided with Maroc
The previous routine at 53323 has confirmed a creature has collided with Maroc.
53349 LD A,(60230) Check if creature is a WRAITH
53352 CP 11
53354 JR NZ,53364 If not, skip next check
WRAITHS are destroyed if they collide with Maroc when WRAITHBANE is active
53356 LD A,(60137) Creature is a wraith
53359 CP 20 Does Maroc have the WRAITHBANE spell active?
53361 JP Z,53372 If so, destroy wraith
Creature is touching Maroc - drain his energy by the amount of damage that this type of creature does.
53364 LD A,(60332) Amount of damage this creature does to Maroc's energy bar (see Reference - Creatures)
53367 CALL 58316 Decrease Maroc's energy
53370 JR 53392 Jump to the routine to stop the creature moving - it has found Maroc and will stay where it is and continue to drain his energy unless he moves
Prev: 53323 Up: Map Next: 53372