mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/Creatures: Fix instant despawn for summons with unlimited duration (#29307)
This commit is contained in:
@@ -192,7 +192,7 @@ void TempSummon::InitStats(WorldObject* summoner, Milliseconds duration)
|
||||
m_lifetime = duration;
|
||||
|
||||
if (m_type == TEMPSUMMON_MANUAL_DESPAWN)
|
||||
m_type = (duration == 0ms) ? TEMPSUMMON_DEAD_DESPAWN : TEMPSUMMON_TIMED_DESPAWN;
|
||||
m_type = (duration <= 0ms) ? TEMPSUMMON_DEAD_DESPAWN : TEMPSUMMON_TIMED_DESPAWN;
|
||||
|
||||
if (summoner && summoner->IsPlayer())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user