Core/Units: moved Vignette updating into Heartbeat handling

Port From (https://github.com/TrinityCore/TrinityCore/commit/253f306a410bfbea9843bbb666cae0af30b4c8e8)
This commit is contained in:
Hondacrx
2024-08-19 12:15:27 -04:00
parent bf0c457273
commit d7130c982d
2 changed files with 4 additions and 4 deletions
@@ -684,10 +684,6 @@ namespace Game.Entities
if (isInWater) if (isInWater)
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.Swimming); RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.Swimming);
// TODO: on heartbeat
if (m_vignette != null)
Vignettes.Update(m_vignette, this);
return (relocated || turn); return (relocated || turn);
} }
+4
View File
@@ -2564,6 +2564,10 @@ namespace Game.Entities
// Trigger heartbeat procs and generic aura behavior such as food emotes // Trigger heartbeat procs and generic aura behavior such as food emotes
TriggerAuraHeartbeat(); TriggerAuraHeartbeat();
// Update Vignette position and visibility
if (m_vignette != null)
Vignettes.Update(m_vignette, this);
} }
void TriggerAuraHeartbeat() void TriggerAuraHeartbeat()