mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user