Changeset 63 for trunk/src/game
- Timestamp:
- 11/19/08 13:30:46 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Unit.cpp
r61 r63 10648 10648 void Unit::ApplyAttackTimePercentMod( WeaponAttackType att,float val, bool apply ) 10649 10649 { 10650 float remainingTimePct = (float)m_attackTimer[att] / (GetAttackTime(att) * m_modAttackSpeedPct[att]); 10650 10651 if(val > 0) 10651 10652 { … … 10658 10659 ApplyPercentModFloatValue(UNIT_FIELD_BASEATTACKTIME+att,-val,apply); 10659 10660 } 10661 m_attackTimer[att] = uint32(GetAttackTime(att) * m_modAttackSpeedPct[att] * remainingTimePct); 10660 10662 } 10661 10663