fix(Core/Creature): Skip JustRespawned for temp summons (#25533)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
parent
985324d1ce
commit
f0c97a679e
1 changed files with 8 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue