Correct target in health update

This commit is contained in:
Wiktor Mazur
2019-08-26 20:38:18 +02:00
parent a0127ea21e
commit a14c349b2f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ Albion online stats is an extention to MMORPG game - Albion Online. It tracks ne
* copied from [Albion Online Data](https://www.albion-online-data.com/)
## Getting started
# Getting started
## Prerequisites
@@ -64,7 +64,7 @@ Albion online stats is an extention to MMORPG game - Albion Online. It tracks ne
```
## License
# License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
+1 -1
View File
@@ -79,7 +79,7 @@ fn initialize(_py: Python) -> PyResult<u32> {
game_protocol::Message::Leave(msg) => meter.register_leave(msg.source).unwrap_or(()),
game_protocol::Message::NewCharacter(msg) => meter.register_player(&msg.character_name, msg.source),
game_protocol::Message::CharacterStats(msg) => meter.register_main_player(&msg.character_name, msg.source),
game_protocol::Message::HealthUpdate(msg) => meter.register_damage_dealt(msg.source, msg.value).unwrap_or(()),
game_protocol::Message::HealthUpdate(msg) => meter.register_damage_dealt(msg.target, msg.value).unwrap_or(()),
game_protocol::Message::RegenerationHealthChanged(msg) => {
match msg.regeneration_rate {
Some(_) => meter.register_combat_leave(msg.source).unwrap_or(()),