*Apply range mod also for melee spells.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-06 10:44:53 -06:00
parent 8685659d6b
commit 8ffc1a6e4c
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -774,7 +774,7 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
float GetCombatReach() const { return m_floatValues[UNIT_FIELD_COMBATREACH]; }
float GetMeleeReach() const { float reach = m_floatValues[UNIT_FIELD_COMBATREACH]; return reach > MIN_MELEE_REACH ? reach : MIN_MELEE_REACH; }
bool IsWithinCombatRange(Unit *obj, float dist2compare) const;
bool IsWithinMeleeRange(Unit *obj) const;
bool IsWithinMeleeRange(Unit *obj, float dist = MELEE_RANGE) const;
void GetRandomContactPoint( const Unit* target, float &x, float &y, float &z, float distance2dMin, float distance2dMax ) const;
uint32 m_extraAttacks;
bool m_canDualWield;