diff options
| author | megamage <none@none> | 2008-11-01 16:53:16 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2008-11-01 16:53:16 -0500 |
| commit | 37d0fdd0cd4f6012c4a0c1f536a726fed9d4994e (patch) | |
| tree | 96a7067d4e7fd21a1b26766f43f8bb122f00d7d3 /src/game/Unit.h | |
| parent | d292b85d3849cf45028ee98220311af9b0ccafa0 (diff) | |
[svn] Check creature combat reach when loading db. This should fix the bug that finding random contact point causes crash.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.h')
| -rw-r--r-- | src/game/Unit.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Unit.h b/src/game/Unit.h index 040e8300a03..8240695cd93 100644 --- a/src/game/Unit.h +++ b/src/game/Unit.h @@ -721,6 +721,7 @@ class TRINITY_DLL_SPEC Unit : public WorldObject bool CanDualWield() const { return m_canDualWield; } void SetCanDualWield(bool value) { m_canDualWield = value; } bool canReachWithAttack(Unit *pVictim) const; + float GetCombatReach() const { return m_floatValues[UNIT_FIELD_COMBATREACH]; } bool IsWithinCombatDist(Unit *obj, float dist2compare) const; void GetRandomContactPoint( const Unit* target, float &x, float &y, float &z, float distance2dMin, float distance2dMax ) const; uint32 m_extraAttacks; |
