Engineer's Pet target health client/server desync after switching a target #941

Open
opened 2024-09-16 13:00:42 +02:00 by Nephima · 1 comment
Nephima commented 2024-09-16 13:00:42 +02:00 (Migrated from github.com)

Reproduction steps

1. Be an engineer profession and have a pet out.
2. Send pet to attack an enemy npc.
3. Before first enemy dies, tell pet to attack a second enemy.

Expected results

After pet is sent to attack the second enemy, damage numbers should float over the second enemy, also second enemy's health bar should be updating (decreasing as it's being damaged).

Actual results

Damage numbers are still floating over the first enemy and its health bar is decreasing. When I open information window of both enemies, they health updates with the server so HP bar of first enemy jumps to full and HP bar of second enemy decreases as intended.

Bug prevalence

Every time.

Description

So, switching my pet's target updates on the server's side but on the client side it seems to be still stuck on the first target. Client starts updating health on the second target only once the first enemy dies.

https://pastebin.com/GYKHuJym

### Reproduction steps ```bash 1. Be an engineer profession and have a pet out. 2. Send pet to attack an enemy npc. 3. Before first enemy dies, tell pet to attack a second enemy. ``` ### Expected results ```bash After pet is sent to attack the second enemy, damage numbers should float over the second enemy, also second enemy's health bar should be updating (decreasing as it's being damaged). ``` ### Actual results ```bash Damage numbers are still floating over the first enemy and its health bar is decreasing. When I open information window of both enemies, they health updates with the server so HP bar of first enemy jumps to full and HP bar of second enemy decreases as intended. ``` ### Bug prevalence Every time. ### Description ```bash So, switching my pet's target updates on the server's side but on the client side it seems to be still stuck on the first target. Client starts updating health on the second target only once the first enemy dies. ``` ### Report link https://pastebin.com/GYKHuJym
kajoriEU commented 2024-09-16 20:14:11 +02:00 (Migrated from github.com)

Confirmed. The bug is reproducible as described above. The client incorrectly shows damage on the first target while the server correctly applies damage to the second target.

This can also cause the target to not die properly.

{21CBFB48-C71D-4894-AEF8-0709C4CF76EE}

Confirmed. The bug is reproducible as described above. The client incorrectly shows damage on the first target while the server correctly applies damage to the second target. This can also cause the target to not die properly. ![{21CBFB48-C71D-4894-AEF8-0709C4CF76EE}](https://github.com/user-attachments/assets/0cc8bdbe-a73d-4b40-ba9a-74b9a6884ec7)
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: prk/issues#941
No description provided.