mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
fix(Core/Spell): Implement SPELL_ATTR6_NO_PUSHBACK (#19292)
fix(Core/Spell): ImplementSPELL_ATTR6_NO_PUSHBACK
This commit is contained in:
@@ -7746,6 +7746,9 @@ void Spell::Delayed() // only called in DealDamage()
|
||||
if (isDelayableNoMore()) // Spells may only be delayed twice
|
||||
return;
|
||||
|
||||
if (m_spellInfo->HasAttribute(SPELL_ATTR6_NO_PUSHBACK))
|
||||
return;
|
||||
|
||||
// spells not loosing casting time (slam, dynamites, bombs..)
|
||||
//if (!(m_spellInfo->InterruptFlags & SPELL_INTERRUPT_FLAG_DAMAGE))
|
||||
// return;
|
||||
@@ -7785,6 +7788,9 @@ void Spell::DelayedChannel()
|
||||
if (isDelayableNoMore()) // Spells may only be delayed twice
|
||||
return;
|
||||
|
||||
if (m_spellInfo->HasAttribute(SPELL_ATTR6_NO_PUSHBACK))
|
||||
return;
|
||||
|
||||
//check pushback reduce
|
||||
// should be affected by modifiers, not take the dbc duration.
|
||||
int32 duration = ((m_channeledDuration > 0) ? m_channeledDuration : m_spellInfo->GetDuration());
|
||||
|
||||
Reference in New Issue
Block a user