Core/Entities: ghouls start with full energy
Port From (https://github.com/TrinityCore/TrinityCore/commit/e8e501609fd6e8b4b0affd8d91077d36e7161a89)
This commit is contained in:
@@ -484,7 +484,10 @@ namespace Game.Entities
|
|||||||
if (petType == PetType.Hunter) // Hunter pets have focus
|
if (petType == PetType.Hunter) // Hunter pets have focus
|
||||||
SetPowerType(PowerType.Focus);
|
SetPowerType(PowerType.Focus);
|
||||||
else if (IsPetGhoul() || IsPetAbomination()) // DK pets have energy
|
else if (IsPetGhoul() || IsPetAbomination()) // DK pets have energy
|
||||||
|
{
|
||||||
SetPowerType(PowerType.Energy);
|
SetPowerType(PowerType.Energy);
|
||||||
|
SetFullPower(PowerType.Energy);
|
||||||
|
}
|
||||||
else if (IsPetImp() || IsPetFelhunter() || IsPetVoidwalker() || IsPetSuccubus() || IsPetDoomguard() || IsPetFelguard()) // Warlock pets have energy (since 5.x)
|
else if (IsPetImp() || IsPetFelhunter() || IsPetVoidwalker() || IsPetSuccubus() || IsPetDoomguard() || IsPetFelguard()) // Warlock pets have energy (since 5.x)
|
||||||
SetPowerType(PowerType.Energy);
|
SetPowerType(PowerType.Energy);
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -70,14 +70,7 @@ namespace Game.Entities
|
|||||||
|
|
||||||
public void Install()
|
public void Install()
|
||||||
{
|
{
|
||||||
if (_me.IsTypeId(TypeId.Unit))
|
_me.UpdateDisplayPower();
|
||||||
{
|
|
||||||
PowerDisplayRecord powerDisplay = CliDB.PowerDisplayStorage.LookupByKey(_vehicleInfo.PowerDisplayID[0]);
|
|
||||||
if (powerDisplay != null)
|
|
||||||
_me.SetPowerType((PowerType)powerDisplay.ActualType);
|
|
||||||
else if (_me.GetClass() == Class.Rogue)
|
|
||||||
_me.SetPowerType(PowerType.Energy);
|
|
||||||
}
|
|
||||||
|
|
||||||
_status = Status.Installed;
|
_status = Status.Installed;
|
||||||
if (GetBase().IsTypeId(TypeId.Unit))
|
if (GetBase().IsTypeId(TypeId.Unit))
|
||||||
|
|||||||
Reference in New Issue
Block a user