mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/Entities: ghouls start with full energy
(cherry picked from commit 0c1e485e13)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user