Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

Commit

Permalink
fix thing
Browse files Browse the repository at this point in the history
  • Loading branch information
Parkeymon committed Nov 25, 2021
1 parent 6aa7b99 commit dcf168f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions BetterDoggie/EventHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public static void OnHurtingPlayer(HurtingEventArgs ev)
ev.IsAllowed = false;
return;
}

if (ev.Attacker == ev.Target)
return;

// 600 Is the maximum hume shield of 939
ev.Amount = BetterDoggie.Singleton.Config.BaseDamage + Math.Abs(ev.Attacker.ArtificialHealth - 600) / 600 * BetterDoggie.Singleton.Config.MaxDamageBoost;
Expand Down

0 comments on commit dcf168f

Please sign in to comment.