mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
fix(Core/Player): Players are allowed to continue melee attacking on … (#6267)
- Closes #6248. - Closes #5734 - Closes chromiecraft/chromiecraft#795
This commit is contained in:
@@ -3376,10 +3376,11 @@ void Unit::_UpdateAutoRepeatSpell()
|
||||
static uint32 const HUNTER_AUTOSHOOT = 75;
|
||||
|
||||
// Check "realtime" interrupts
|
||||
if ((GetTypeId() == TYPEID_PLAYER && ToPlayer()->isMoving() && spellProto->Id != HUNTER_AUTOSHOOT) ||
|
||||
IsNonMeleeSpellCast(false, false, true, spellProto->Id == HUNTER_AUTOSHOOT))
|
||||
if ((GetTypeId() == TYPEID_PLAYER && ToPlayer()->isMoving() && spellProto->Id != HUNTER_AUTOSHOOT) || IsNonMeleeSpellCast(false, false, true, spellProto->Id == HUNTER_AUTOSHOOT))
|
||||
{
|
||||
InterruptSpell(CURRENT_AUTOREPEAT_SPELL);
|
||||
// cancel wand shoot
|
||||
if (spellProto->Id != HUNTER_AUTOSHOOT)
|
||||
InterruptSpell(CURRENT_AUTOREPEAT_SPELL);
|
||||
m_AutoRepeatFirstCast = true;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user