aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2021-04-29 18:51:56 +0200
committerShauren <shauren.trinity@gmail.com>2021-04-29 18:51:56 +0200
commit8e6821648b96e4ae8e495b1adc0c15855eea9633 (patch)
tree43a915f575e37383b609edd24d8d343ef33fa1f3 /src
parentb426e64c39d47b70a92fe029c0af7bbf85ea9d30 (diff)
Core/Spells: Only interrupt spells with interrupt flag Combat when spell also has SPELL_ATTR0_CANT_USED_IN_COMBAT attribute
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/Unit/Unit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index 91763b7e685..ff72d4162e0 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -8274,7 +8274,9 @@ void Unit::SetInCombatState(bool PvP, Unit* enemy)
}
if (Spell* spell = m_currentSpells[CURRENT_GENERIC_SPELL])
- if (spell->getState() == SPELL_STATE_PREPARING && spell->m_spellInfo->InterruptFlags.HasFlag(SpellInterruptFlags::Combat))
+ if (spell->getState() == SPELL_STATE_PREPARING
+ && spell->m_spellInfo->HasAttribute(SPELL_ATTR0_CANT_USED_IN_COMBAT)
+ && spell->m_spellInfo->InterruptFlags.HasFlag(SpellInterruptFlags::Combat))
InterruptNonMeleeSpells(false);
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags::EnteringCombat);