aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Unit.h')
-rw-r--r--src/game/Unit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Unit.h b/src/game/Unit.h
index 3b2656b539a..24722645eaf 100644
--- a/src/game/Unit.h
+++ b/src/game/Unit.h
@@ -774,6 +774,7 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
bool canReachWithAttack(Unit *pVictim) const;
float GetCombatReach() const { return m_floatValues[UNIT_FIELD_COMBATREACH]; }
bool IsWithinCombatDist(Unit *obj, float dist2compare) const;
+ bool IsWithinMeleeRange(Unit *obj) const { return IsWithinCombatDist(obj, ATTACK_DISTANCE); }
void GetRandomContactPoint( const Unit* target, float &x, float &y, float &z, float distance2dMin, float distance2dMax ) const;
uint32 m_extraAttacks;
bool m_canDualWield;