Changeset 136 for trunk/src/game/Unit.h

Show
Ignore:
Timestamp:
11/19/08 13:39:20 (17 years ago)
Author:
yumileroy
Message:

[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.

Original author: megamage
Date: 2008-10-29 20:00:21-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Unit.h

    r110 r136  
    718718        bool isAttackReady(WeaponAttackType type = BASE_ATTACK) const { return m_attackTimer[type] == 0; } 
    719719        bool haveOffhandWeapon() const; 
     720        bool CanDualWield() const { return m_canDualWield; } 
     721        void SetCanDualWield(bool value) { m_canDualWield = value; } 
    720722        bool canReachWithAttack(Unit *pVictim) const; 
    721723        bool IsWithinCombatDist(Unit *obj, float dist2compare) const; 
    722724        uint32 m_extraAttacks; 
     725        bool m_canDualWield; 
    723726 
    724727        void _addAttacker(Unit *pAttacker)                  // must be called only from Unit::Attack(Unit*)