diff options
| author | Wyrserth <wyrserth@protonmail.com> | 2019-07-24 20:13:13 +0200 |
|---|---|---|
| committer | Wyrserth <wyrserth@protonmail.com> | 2019-07-24 20:13:13 +0200 |
| commit | e2e37ec839ef3f4368b09b0035db1c6ef721c296 (patch) | |
| tree | 80ce7c027c69b96b2b913ddbc1bdada973844487 /src | |
| parent | e68ebd33395569e9aa006acd04645973d9c96187 (diff) | |
Core/Creature: fix mistake in Creature::GetAttackDistance().
Thanks Azelen for the heads-up!
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Entities/Creature/Creature.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Creature/Creature.cpp b/src/server/game/Entities/Creature/Creature.cpp index 930ba1ad866..2cd09ca046b 100644 --- a/src/server/game/Entities/Creature/Creature.cpp +++ b/src/server/game/Entities/Creature/Creature.cpp @@ -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 |
