[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:
megamage
2008-10-29 20:00:21 -05:00
parent 7ea14f94f1
commit a1131cdb21
7 changed files with 67 additions and 85 deletions

View File

@@ -993,17 +993,6 @@ void Player::Update( uint32 p_time )
Unit::Update( p_time );
// update player only attacks
if(uint32 ranged_att = getAttackTimer(RANGED_ATTACK))
{
setAttackTimer(RANGED_ATTACK, (p_time >= ranged_att ? 0 : ranged_att - p_time) );
}
if(uint32 off_att = getAttackTimer(OFF_ATTACK))
{
setAttackTimer(OFF_ATTACK, (p_time >= off_att ? 0 : off_att - p_time) );
}
time_t now = time (NULL);
UpdatePvPFlag(now);