*Update spell range calculation. Original patch by QAston.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-04 23:00:35 -06:00
parent 450c0a45b8
commit d36672cd7e
12 changed files with 42 additions and 32 deletions
+1
View File
@@ -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;