mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-24 01:27:20 +00:00
Make bot pets only do half damage in pvp
This commit is contained in:
1 parent
58a7d25899
commit
22121b7419
1 file changed
+1
-1
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user