[svn] Provide creature dual wield support.
Update glancing damage formula. Do not daze creatures when other creatures attack from the back (need to find a better way). Fix the damage calculation of +damage aura. --HG-- branch : trunk
This commit is contained in:
@@ -717,9 +717,12 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
|
||||
uint32 getAttackTimer(WeaponAttackType type) const { return m_attackTimer[type]; }
|
||||
bool isAttackReady(WeaponAttackType type = BASE_ATTACK) const { return m_attackTimer[type] == 0; }
|
||||
bool haveOffhandWeapon() const;
|
||||
bool CanDualWield() const { return m_canDualWield; }
|
||||
void SetCanDualWield(bool value) { m_canDualWield = value; }
|
||||
bool canReachWithAttack(Unit *pVictim) const;
|
||||
bool IsWithinCombatDist(Unit *obj, float dist2compare) const;
|
||||
uint32 m_extraAttacks;
|
||||
bool m_canDualWield;
|
||||
|
||||
void _addAttacker(Unit *pAttacker) // must be called only from Unit::Attack(Unit*)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user