StopAttack
function · objectlayer · primitive
- Address
0x624e40· 223 bytes, up to0x624f1e- Meaning
- Ends a unit's attack: clears its target fields, flushes and zeroes its pending swing, faces a victim
- Confidence
- verified, proof one
- Finding
- objectlayer/unitcombat#attack-messages
Finding: Attack messages in objectlayer: unit combat
0x625520 registers 0x6255b0 for eight opcodes, then the combat log's; 0x625bd0 clears them.
| opcode | body | action |
|---|---|---|
| 0x143 | attacker GUID, victim GUID | the attacker's target +0xc48 is the victim; the player raises PLAYER_ENTER_COMBAT |
| 0x144 | packed attacker, packed victim, u32 | 0x624e40 stops the attack; the player raises PLAYER_LEAVE_COMBAT |
| 0x145, 0x146 | none | the attack error state 1 or 2 (players, Attack error repeat) |
| 0x148, 0x149 | none | the active player's melee attack stops |
| 0x14a | the attacker state | below |
| 0x1fc | GUID, u8 type, i32 damage, absorbed, resisted | 0x624f30, environmental damage |
The derivation is in the doc.
Callers 1
- HandleUnitCombatMessage objectlayer
Callees 3
- ClntObjMgrObjectPtr objectlayer
- HeadingBetweenPoints objectlayer
- FloatSwingResult objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.