Core/Creature: fix mistake in Creature::GetAttackDistance().

Thanks Azelen for the heads-up!
This commit is contained in:
Wyrserth
2019-07-24 20:13:13 +02:00
parent e68ebd3339
commit e2e37ec839

View File

@@ -1899,7 +1899,7 @@ float Creature::GetAttackDistance(Unit const* player) const
if (float(GetLevel() + 5) <= sWorld->getIntConfig(CONFIG_MAX_PLAYER_LEVEL))
{
aggroRadius += GetTotalAuraModifier(SPELL_AURA_MOD_DETECT_RANGE);
aggroRadius += GetTotalAuraModifier(SPELL_AURA_MOD_DETECTED_RANGE);
aggroRadius += player->GetTotalAuraModifier(SPELL_AURA_MOD_DETECTED_RANGE);
}
// The aggro range of creatures with higher levels than the total player level for the expansion should get the maxlevel treatment