Core/Creatures: Update stats for temporary summons after setting their level to match summoner's level (#31929)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user