Skip to content

Commit

Permalink
Fix ANOTHER xp assignment bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ToxicFrog committed Jul 27, 2022
1 parent 34ebde4 commit 9aa519f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion laevis/ca.ancilla.laevis/EventHandler.zs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class ::EventHandler : StaticEventHandler {
&& evt.thing != evt.damagesource
&& evt.damage > 0) {
let stats = ::PerPlayerStats.GetStatsFor(PlayerPawn(evt.damagesource));
stats.OnDamageDealt(evt.inflictor, evt.thing, min(evt.damage, evt.thing.health));
stats.OnDamageDealt(evt.inflictor, evt.thing, evt.damage);
if (evt.thing.health <= 0) {
stats.OnKill(evt.inflictor, evt.thing);
}
Expand Down

0 comments on commit 9aa519f

Please sign in to comment.