Skip to content

Commit

Permalink
Fix percent health display when taking spikes damage
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanmoffat committed May 14, 2022
1 parent be078b2 commit 56eedfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EOLib/PacketHandlers/Effects/MapDebuffHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public override bool HandlePacket(IPacket packet)
_characterRepository.MainCharacter = character;

foreach (var notifier in _mainCharacterEventNotifiers)
notifier.NotifyTakeDamage(damage, (int)Math.Round((double)hp / maxHp) * 100, isHeal: false);
notifier.NotifyTakeDamage(damage, (int)Math.Round((double)hp / maxHp * 100), isHeal: false);
}
break;
default:
Expand Down

0 comments on commit 56eedfe

Please sign in to comment.