even more edge cases

This commit is contained in:
Robin Appelman 2023-03-18 15:14:37 +01:00
commit b01029ddde
4 changed files with 93 additions and 60 deletions

View file

@ -32,7 +32,7 @@ impl GlobalData for HighestDamageHandler {
..
}) = event
{
let damage = damage.get();
let damage = *damage as u32;
match &mut self.current {
Some((_, current_damage)) if damage > *current_damage => {
self.current = Some((subject, damage))