mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[9399] Simplify config options loading code.
This commit is contained in:
parent
d20e50a8e5
commit
d536661cbf
4 changed files with 429 additions and 508 deletions
|
|
@ -1645,7 +1645,7 @@ bool Creature::IsOutOfThreatArea(Unit* pVictim) const
|
|||
return false;
|
||||
|
||||
float AttackDist = GetAttackDistance(pVictim);
|
||||
uint32 ThreatRadius = sWorld.getConfig(CONFIG_UINT32_THREAT_RADIUS);
|
||||
float ThreatRadius = sWorld.getConfig(CONFIG_FLOAT_THREAT_RADIUS);
|
||||
|
||||
//Use AttackDistance in distance check if threat radius is lower. This prevents creature bounce in and out of combat every update tick.
|
||||
return !pVictim->IsWithinDist3d(CombatStartX, CombatStartY, CombatStartZ,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue