Core/Units: moved Vignette updating into Heartbeat handling
Port From (https://github.com/TrinityCore/TrinityCore/commit/253f306a410bfbea9843bbb666cae0af30b4c8e8)
This commit is contained in:
@@ -684,10 +684,6 @@ namespace Game.Entities
|
||||
if (isInWater)
|
||||
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.Swimming);
|
||||
|
||||
// TODO: on heartbeat
|
||||
if (m_vignette != null)
|
||||
Vignettes.Update(m_vignette, this);
|
||||
|
||||
return (relocated || turn);
|
||||
}
|
||||
|
||||
|
||||
@@ -2564,6 +2564,10 @@ namespace Game.Entities
|
||||
|
||||
// Trigger heartbeat procs and generic aura behavior such as food emotes
|
||||
TriggerAuraHeartbeat();
|
||||
|
||||
// Update Vignette position and visibility
|
||||
if (m_vignette != null)
|
||||
Vignettes.Update(m_vignette, this);
|
||||
}
|
||||
|
||||
void TriggerAuraHeartbeat()
|
||||
|
||||
Reference in New Issue
Block a user