Core/Pets: Removed overriding unit class for pets
Port From (https://github.com/TrinityCore/TrinityCore/commit/2c702df4e3b25d764a2712577048921008a20671)
This commit is contained in:
@@ -1760,17 +1760,8 @@ namespace Game.Entities
|
||||
if (powerDisplay != null)
|
||||
displayPower = (PowerType)powerDisplay.ActualType;
|
||||
}
|
||||
else
|
||||
{
|
||||
Pet pet = ToPet();
|
||||
if (pet != null)
|
||||
{
|
||||
if (pet.GetPetType() == PetType.Hunter) // Hunter pets have focus
|
||||
displayPower = PowerType.Focus;
|
||||
else if (pet.IsPetGhoul() || pet.IsPetAbomination()) // DK pets have energy
|
||||
displayPower = PowerType.Energy;
|
||||
}
|
||||
}
|
||||
else if (IsHunterPet())
|
||||
displayPower = PowerType.Focus;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user