fix(Core/Spells): Steady Shoot should not suspend ranged attack timer. (#9125)
Fixes #9107
This commit is contained in:
parent
df0158f8be
commit
3c8bcf31ac
1 changed files with 6 additions and 4 deletions
|
|
@ -469,16 +469,18 @@ void Unit::Update(uint32 p_time)
|
|||
{
|
||||
setAttackTimer(BASE_ATTACK, base_attack > 0 ? base_attack - (int32) p_time : 0);
|
||||
}
|
||||
if (int32 ranged_attack = getAttackTimer(RANGED_ATTACK))
|
||||
{
|
||||
setAttackTimer(RANGED_ATTACK, ranged_attack > 0 ? ranged_attack - (int32) p_time : 0);
|
||||
}
|
||||
|
||||
if (int32 off_attack = getAttackTimer(OFF_ATTACK))
|
||||
{
|
||||
setAttackTimer(OFF_ATTACK, off_attack > 0 ? off_attack - (int32) p_time : 0);
|
||||
}
|
||||
}
|
||||
|
||||
if (int32 ranged_attack = getAttackTimer(RANGED_ATTACK))
|
||||
{
|
||||
setAttackTimer(RANGED_ATTACK, ranged_attack > 0 ? ranged_attack - (int32) p_time : 0);
|
||||
}
|
||||
|
||||
// update abilities available only for fraction of time
|
||||
UpdateReactives(p_time);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue