fix damage

This commit is contained in:
Robin Appelman 2023-03-16 22:46:52 +01:00
commit 838c3a0dd9
4 changed files with 17 additions and 3 deletions

View file

@ -93,7 +93,7 @@ impl EventHandler for ClassStatsHandler {
}
GameEvent::Damage(DamageEvent {
damage: Some(damage),
target: Some(target),
target,
..
}) if self.active => {
if let Some(target_class) = self.get_class(target) {