Make bot pets only do half damage in pvp

This commit is contained in:
nytmyr
2025-01-24 20:10:42 -06:00
parent 58a7d25899
commit 22121b7419
+1 -1
View File
@@ -2398,7 +2398,7 @@ bool NPC::Attack(Mob* other, int Hand, bool bRiposte, bool IsStrikethrough, bool
LogCombat("Final damage against [{}]: [{}]", other->GetName(), my_hit.damage_done);
if (other->IsClient() && IsPet() && GetOwner()->IsClient()) {
if (other->IsClient() && IsPet() && GetOwner()->IsOfClientBot()) {
//pets do half damage to clients in pvp
my_hit.damage_done /= 2;
if (my_hit.damage_done < 1) {