diff --git a/src/server/game/Entities/Creature/TemporarySummon.cpp b/src/server/game/Entities/Creature/TemporarySummon.cpp index 23ee49628..42c6e66aa 100644 --- a/src/server/game/Entities/Creature/TemporarySummon.cpp +++ b/src/server/game/Entities/Creature/TemporarySummon.cpp @@ -269,11 +269,10 @@ void TempSummon::InitSummon() owner->ToGameObject()->AI()->JustSummoned(this); } } - } - // Xinef: Allow to call this hook when npc is summoned by gameobject, in this case pass this as summoner to avoid possible null checks - if (IsAIEnabled) - AI()->IsSummonedBy(owner); + if (IsAIEnabled) + AI()->IsSummonedBy(owner); + } } void TempSummon::SetTempSummonType(TempSummonType type)