Correct target in health update
This commit is contained in:
@@ -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/)
|
* copied from [Albion Online Data](https://www.albion-online-data.com/)
|
||||||
|
|
||||||
## Getting started
|
# Getting started
|
||||||
|
|
||||||
## Prerequisites
|
## 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
|
Licensed under either of
|
||||||
|
|
||||||
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
|
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
|
|||||||
+1
-1
@@ -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::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::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::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) => {
|
game_protocol::Message::RegenerationHealthChanged(msg) => {
|
||||||
match msg.regeneration_rate {
|
match msg.regeneration_rate {
|
||||||
Some(_) => meter.register_combat_leave(msg.source).unwrap_or(()),
|
Some(_) => meter.register_combat_leave(msg.source).unwrap_or(()),
|
||||||
|
|||||||
Reference in New Issue
Block a user