Core/Creatures: Clean up temporary summon duplicate level initialization
Port From (https://github.com/TrinityCore/TrinityCore/commit/1cae07870b4ff3c33669326756392d9086dac50f)
This commit is contained in:
@@ -503,7 +503,7 @@ namespace Game.Entities
|
||||
{
|
||||
base.InitStats(summoner, duration);
|
||||
|
||||
InitStatsForLevel(GetOwner().GetLevel());
|
||||
InitStatsForLevel(GetLevel()); // level is already initialized in TempSummon::InitStats, so use that
|
||||
|
||||
if (GetOwner().IsTypeId(TypeId.Player) && HasUnitTypeMask(UnitTypeMask.ControlableGuardian))
|
||||
GetCharmInfo().InitCharmCreateSpells();
|
||||
|
||||
Reference in New Issue
Block a user