Misc fixes.
This commit is contained in:
@@ -477,8 +477,11 @@ namespace Game.Entities
|
||||
val = maxHealth;
|
||||
}
|
||||
|
||||
ulong oldVal = GetHealth();
|
||||
SetUpdateFieldValue(m_values.ModifyValue(m_unitData).ModifyValue(m_unitData.Health), val);
|
||||
|
||||
TriggerOnHealthChangeAuras(oldVal, val);
|
||||
|
||||
// group update
|
||||
Player player = ToPlayer();
|
||||
if (player)
|
||||
|
||||
@@ -547,7 +547,7 @@ namespace Game.Entities
|
||||
void LoadStaticPassengers()
|
||||
{
|
||||
uint mapId = (uint)GetGoInfo().MoTransport.SpawnMap;
|
||||
var cells = Global.ObjectMgr.GetMapObjectGuids(mapId, (byte)GetMap().GetDifficultyID());
|
||||
var cells = Global.ObjectMgr.GetMapObjectGuids(mapId, GetMap().GetDifficultyID());
|
||||
if (cells == null)
|
||||
return;
|
||||
foreach (var cell in cells)
|
||||
|
||||
Reference in New Issue
Block a user