Prev: 25850 Up: Map Next: 26059
26042: Handle Leech Weapon Hit
Used by the routine at UpdateLeech.
A weapon has hit the leech. A streamer kills it, the repellent spray stuns it and a smoke bomb has no effect.
Input
A State of the weapon
IX Leech object
LeechWeaponHit 26042 AND %00111111 Keep only bits 0-5 (the type of the weapon).
26044 CP 18 Jump to KillLeech if the weapon is a streamer.
26046 JR Z,KillLeech
26048 CP 8 Jump to UpdateLeech_NoWeaponHit if it is not the repellent spray.
26050 JP NZ,UpdateLeech_NoWeaponHit
26053 CALL StunBug Call StunBug to stun the leech.
26056 JP UpdateLeech_NoWeaponHit Jump to UpdateLeech_NoWeaponHit.
Prev: 25850 Up: Map Next: 26059