Prev: B6E3 Up: Map Next: B6F4
B6E8: Check Weapon Hit
Used by the routines at Handle_Flying_Creature and Handle_Guardian.
Checks whether either of the two weapon records is touching an object.
See Check_Weapon_Record_Hit for the details.
Input
IX Object record
Output
D FF if a weapon has hit the object, otherwise 00
E Type of the weapon that has hit the object
Check_Weapon_Hit B6E8 LD HL,$8EFA Point HL at the first weapon record.
B6EB CALL Check_Weapon_Record_Hit Check whether the weapon hits the object.
B6EE LD A,D Return if it does.
B6EF AND A
B6F0 RET NZ
B6F1 LD HL,$8F0A Point HL at Second_Weapon_Record.
Prev: B6E3 Up: Map Next: B6F4