mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Creature: fix mistake in Creature::GetAttackDistance().
Thanks Azelen for the heads-up!
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user