Misc fixes
This commit is contained in:
@@ -2478,6 +2478,7 @@ namespace Game.Entities
|
||||
CreatureTemplate cInfo = GetCreatureTemplate();
|
||||
CreatureLevelScaling scaling = cInfo.GetLevelScaling(GetMap().GetDifficultyID());
|
||||
float baseHealth = Global.DB2Mgr.EvaluateExpectedStat(ExpectedStatType.CreatureHealth, level, cInfo.GetHealthScalingExpansion(), scaling.ContentTuningID, (Class)cInfo.UnitClass);
|
||||
|
||||
return (ulong)(baseHealth * cInfo.ModHealth * cInfo.ModHealthExtra);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,6 +43,14 @@ namespace Game.Entities
|
||||
posZ = vector.Z;
|
||||
}
|
||||
|
||||
public Position(Position position)
|
||||
{
|
||||
posX = position.posX;
|
||||
posY = position.posY;
|
||||
posZ = position.posZ;
|
||||
Orientation = position.Orientation;
|
||||
}
|
||||
|
||||
public float GetPositionX()
|
||||
{
|
||||
return posX;
|
||||
|
||||
@@ -488,8 +488,8 @@ namespace Game.Entities
|
||||
if (val == 0)
|
||||
val = 1;
|
||||
|
||||
ulong health = GetHealth();
|
||||
SetUpdateFieldValue(m_values.ModifyValue(m_unitData).ModifyValue(m_unitData.MaxHealth), val);
|
||||
ulong health = GetHealth();
|
||||
|
||||
// group update
|
||||
if (IsTypeId(TypeId.Player))
|
||||
|
||||
Reference in New Issue
Block a user