Core/Entities: ghouls start with full energy

(cherry picked from commit 0c1e485e13)
This commit is contained in:
ariel-
2018-03-07 04:19:06 -03:00
committed by Shauren
parent 9f0204b357
commit e8e501609f
3 changed files with 5 additions and 8 deletions

View File

@@ -855,7 +855,10 @@ bool Guardian::InitStatsForLevel(uint8 petlevel)
if (petType == HUNTER_PET) // Hunter pets have focus
SetPowerType(POWER_FOCUS);
else if (IsPetGhoul() || IsPetAbomination()) // DK pets have energy
{
SetPowerType(POWER_ENERGY);
SetFullPower(POWER_ENERGY);
}
else if (IsPetImp() || IsPetFelhunter() || IsPetVoidwalker() || IsPetSuccubus() || IsPetDoomguard() || IsPetFelguard()) // Warlock pets have energy (since 5.x)
SetPowerType(POWER_ENERGY);
else

View File

@@ -74,13 +74,7 @@ Vehicle::~Vehicle()
void Vehicle::Install()
{
if (_me->GetTypeId() == TYPEID_UNIT)
{
if (PowerDisplayEntry const* powerDisplay = sPowerDisplayStore.LookupEntry(_vehicleInfo->PowerDisplayID[0]))
_me->SetPowerType(Powers(powerDisplay->ActualType));
else if (_me->getClass() == CLASS_ROGUE)
_me->SetPowerType(POWER_ENERGY);
}
_me->UpdateDisplayPower();
_status = STATUS_INSTALLED;
if (GetBase()->GetTypeId() == TYPEID_UNIT)

View File

@@ -1820,7 +1820,7 @@ class npc_toc_rogue : public CreatureScript
events.ScheduleEvent(EVENT_WOUND_POISON, urand(5*IN_MILLISECONDS, 10*IN_MILLISECONDS));
SetEquipmentSlots(false, 47422, 49982, EQUIP_NO_CHANGE);
me->SetPowerType(POWER_ENERGY);
me->SetMaxPower(POWER_ENERGY, 100);
me->SetFullPower(POWER_ENERGY);
}
void UpdateAI(uint32 diff) override