mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-07-11 03:13:10 +00:00
fix(Core/Creature): Skip JustRespawned for temp summons (#25533)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
@@ -707,10 +707,15 @@ void Creature::Update(uint32 diff)
|
||||
{
|
||||
if (IsAIEnabled && TriggerJustRespawned && getDeathState() != DeathState::Dead)
|
||||
{
|
||||
if (_respawnCompatibilityMode && m_vehicleKit)
|
||||
m_vehicleKit->Reset();
|
||||
TriggerJustRespawned = false;
|
||||
AI()->JustRespawned();
|
||||
|
||||
// Skip for temp summons: InitializeAI already reset them, and JustRespawned would clobber state set synchronously during SUMMON.
|
||||
if (!IsSummon())
|
||||
{
|
||||
if (_respawnCompatibilityMode && m_vehicleKit)
|
||||
m_vehicleKit->Reset();
|
||||
AI()->JustRespawned();
|
||||
}
|
||||
}
|
||||
|
||||
switch (m_deathState)
|
||||
|
||||
Reference in New Issue
Block a user