Core/Creatures: Update stats for temporary summons after setting their level to match summoner's level (#31929)

This commit is contained in:
Gearpuller
2026-07-26 15:58:00 +02:00
committed by GitHub
parent acd6b5d66c
commit b17138d514
@@ -244,6 +244,12 @@ void TempSummon::InitStats(WorldObject* summoner, Milliseconds duration)
int32 maxLevel = m_unitData->ScalingLevelMax + m_unitData->ScalingLevelDelta;
uint8 level = std::clamp<int32>(unitSummoner->GetLevel(), minLevel, maxLevel);
SetLevel(level);
if (!IsGuardian())
{
UpdateLevelDependantStats();
UpdateAttackPowerAndDamage(false);
UpdateAttackPowerAndDamage(true);
}
}
}