fix NPC last-hit EXP

This commit is contained in:
Martin Michelsen
2024-03-04 21:48:36 -08:00
parent 7e4bc52d99
commit b0b3bb6140
4 changed files with 11 additions and 21 deletions
+6 -9
View File
@@ -4342,13 +4342,14 @@ struct G_Attack_6x43_6x44_6x45 {
// 6x46: Attack finished (sent after each of 43, 44, and 45) (protected on V3/V4)
struct TargetEntry {
le_uint16_t entity_id = 0;
le_uint16_t unknown_a2 = 0;
} __packed__;
struct G_AttackFinished_6x46 {
G_ClientIDHeader header;
le_uint32_t count = 0;
struct TargetEntry {
le_uint16_t unknown_a1 = 0;
le_uint16_t unknown_a2 = 0;
} __packed__;
// The client may send a shorter command if not all of these are used.
parray<TargetEntry, 10> targets;
} __packed__;
@@ -4366,11 +4367,7 @@ struct G_CastTechnique_6x47 {
// compatibility, and never cleaned it up.
uint8_t level = 0;
uint8_t target_count = 0; // Must be in [0, 10]
struct TargetEntry {
le_uint16_t client_id = 0;
le_uint16_t unknown_a2 = 0;
} __packed__;
// The client mauy send a shorter command if not all of these are used.
// The client may send a shorter command if not all of these are used.
parray<TargetEntry, 10> targets;
} __packed__;