Core/Entities: ghouls start with full energy
Port From (https://github.com/TrinityCore/TrinityCore/commit/e8e501609fd6e8b4b0affd8d91077d36e7161a89)
This commit is contained in:
@@ -70,14 +70,7 @@ namespace Game.Entities
|
||||
|
||||
public void Install()
|
||||
{
|
||||
if (_me.IsTypeId(TypeId.Unit))
|
||||
{
|
||||
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);
|
||||
}
|
||||
_me.UpdateDisplayPower();
|
||||
|
||||
_status = Status.Installed;
|
||||
if (GetBase().IsTypeId(TypeId.Unit))
|
||||
|
||||
Reference in New Issue
Block a user