mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-02 10:33:46 +00:00
Core/Unit: Revert AutoRepeatSpell delay application to Auto Shot (#19603)
This commit is contained in:
@@ -3928,7 +3928,7 @@ void Unit::_UpdateAutoRepeatSpell()
|
|||||||
static uint32 const HUNTER_AUTOSHOOT = 75;
|
static uint32 const HUNTER_AUTOSHOOT = 75;
|
||||||
|
|
||||||
// Check "realtime" interrupts
|
// Check "realtime" interrupts
|
||||||
if ((IsPlayer() && ToPlayer()->isMoving()) || IsNonMeleeSpellCast(false, false, true, spellProto->Id == HUNTER_AUTOSHOOT))
|
if ((IsPlayer() && ToPlayer()->isMoving() && spellProto->Id != HUNTER_AUTOSHOOT) || IsNonMeleeSpellCast(false, false, true, spellProto->Id == HUNTER_AUTOSHOOT))
|
||||||
{
|
{
|
||||||
// cancel wand shoot
|
// cancel wand shoot
|
||||||
if (spellProto->Id != HUNTER_AUTOSHOOT)
|
if (spellProto->Id != HUNTER_AUTOSHOOT)
|
||||||
@@ -3937,7 +3937,8 @@ void Unit::_UpdateAutoRepeatSpell()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_AutoRepeatFirstCast && getAttackTimer(RANGED_ATTACK) < 500)
|
// Apply delay (Hunter's autoshoot not affected)
|
||||||
|
if (m_AutoRepeatFirstCast && getAttackTimer(RANGED_ATTACK) < 500 && spellProto->Id != HUNTER_AUTOSHOOT)
|
||||||
{
|
{
|
||||||
setAttackTimer(RANGED_ATTACK, 500);
|
setAttackTimer(RANGED_ATTACK, 500);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user