Added a check if the pet is an enemy. Might fix it.
Still Battle.lua, same position:
Code: Select all
local wild_hp_factor, wild_power_factor = 1,1
if _G.C_PetBattles.IsWildBattle() and not self:IsAlly() then
wild_hp_factor = 1.2
wild_power_factor = 1.25
end
return floor((self:GetMaxHealth() * healthScale - healthBonus + .5) * wild_hp_factor),
floor(self:GetPower() * wild_power_factor),
floor(self:GetSpeed() * speedScale + .5)
end