mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-20 09:38:21 +00:00
Add bot pet pvp damage to tune
This commit is contained in:
+1
-1
@@ -853,7 +853,7 @@ int64 Mob::TuneNPCAttack(Mob* other, bool no_avoid, bool no_hit_chance, int hit_
|
|||||||
TuneDoAttack(other, my_hit, nullptr, no_avoid, no_hit_chance, ac_override, add_ac, avoidance_override, accuracy_override, add_avoidance, add_accuracy);
|
TuneDoAttack(other, my_hit, nullptr, no_avoid, no_hit_chance, ac_override, add_ac, avoidance_override, accuracy_override, add_avoidance, add_accuracy);
|
||||||
|
|
||||||
LogCombat("Final damage against [{}]: [{}]", other->GetName(), my_hit.damage_done);
|
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
|
//pets do half damage to clients in pvp
|
||||||
my_hit.damage_done /= 2;
|
my_hit.damage_done /= 2;
|
||||||
if (my_hit.damage_done < 1)
|
if (my_hit.damage_done < 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user