Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // in "void Unit::_UpdateAutoRepeatSpell("
- // replace "if ((GetTypeId() == TYPEID_PLAYER && ToPlayer()->isMoving()) || IsNonMeleeSpellCast(false, false, true, autoRepeatSpellInfo->Id == 75))"
- if ((GetTypeId() == TYPEID_PLAYER && ToPlayer()->isMoving()) || IsNonMeleeSpellCast(false, false, true, (autoRepeatSpellInfo->Id == 75 || autoRepeatSpellInfo->Id == 5019 || autoRepeatSpellInfo->Id == 2764)))
- // replace "if (autoRepeatSpellInfo->Id != 75)"
- if (autoRepeatSpellInfo->Id != 75 && autoRepeatSpellInfo->Id != 5019 && autoRepeatSpellInfo->Id != 2764)
- // replace "if (m_AutoRepeatFirstCast && getAttackTimer(RANGED_ATTACK) < 500 && autoRepeatSpellInfo->Id != 75)"
- if (m_AutoRepeatFirstCast && getAttackTimer(RANGED_ATTACK) < 1000)
- // replace "setAttackTimer(RANGED_ATTACK, 500);"
- setAttackTimer(RANGED_ATTACK, 1000);
- // replace "if (autoRepeatSpellInfo->Id != 75)"
- if (autoRepeatSpellInfo->Id != 75 && autoRepeatSpellInfo->Id != 5019 && autoRepeatSpellInfo->Id != 2764)
- // replace "if (!IsNonMeleeSpellCast(false, false, true, autoRepeatSpellInfo->Id == 75))"
- if (!IsNonMeleeSpellCast(false, false, true, (autoRepeatSpellInfo->Id == 75 || autoRepeatSpellInfo->Id == 5019 || autoRepeatSpellInfo->Id == 2764)))
- /* ------------------------------------------------------- */
- // in "void Unit::SetCurrentCastSpell("
- // replace "if (m_currentSpells[CURRENT_AUTOREPEAT_SPELL]->GetSpellInfo()->Id != 75)"
- if (m_currentSpells[CURRENT_AUTOREPEAT_SPELL]->GetSpellInfo()->Id != 75 && m_currentSpells[CURRENT_AUTOREPEAT_SPELL]->GetSpellInfo()->Id != 5019 && m_currentSpells[CURRENT_AUTOREPEAT_SPELL]->GetSpellInfo()->Id != 2764)
- // replace "if (m_currentSpells[CURRENT_AUTOREPEAT_SPELL] && m_currentSpells[CURRENT_AUTOREPEAT_SPELL]->GetSpellInfo()->Id != 75)"
- if (m_currentSpells[CURRENT_AUTOREPEAT_SPELL]->GetSpellInfo()->Id != 75 && m_currentSpells[CURRENT_AUTOREPEAT_SPELL]->GetSpellInfo()->Id != 5019 && m_currentSpells[CURRENT_AUTOREPEAT_SPELL]->GetSpellInfo()->Id != 2764)
- // replace "if (pSpell->GetSpellInfo()->Id != 75)"
- if (pSpell->GetSpellInfo()->Id != 75 && pSpell->GetSpellInfo()->Id != 5019 && pSpell->GetSpellInfo()->Id != 2764)
- /* ------------------------------------------------------- */
- // in "void Unit::InterruptSpell("
- // after "if (!spell->IsInterruptable())"
- if ((spell->m_spellInfo->Id == 5019 || spell->m_spellInfo->Id == 2764) && result == SPELL_FAILED_SPELL_IN_PROGRESS)
- {
- spell->cancel(SPELL_FAILED_DONT_REPORT);
- return;
- }
- /* ------------------------------------------------------- */
- // in "SpellCastResult Spell::prepare("
- // replace "if (!(_triggeredCastFlags & TRIGGERED_IGNORE_CAST_IN_PROGRESS) && m_caster->ToUnit() && m_caster->ToUnit()->IsNonMeleeSpellCast(false, true, true, m_spellInfo->Id == 75) && m_cast_count)"
- if (!(_triggeredCastFlags & TRIGGERED_IGNORE_CAST_IN_PROGRESS) && m_caster->ToUnit() && m_caster->ToUnit()->IsNonMeleeSpellCast(false, true, true, m_spellInfo->Id == 75 || m_spellInfo->Id == 5019) && m_cast_count && m_spellInfo->Id != 5019)
- /* ------------------------------------------------------- */
- // in "SpellCastResult Spell::CheckCast("
- // replace "if (strict && !(_triggeredCastFlags & TRIGGERED_IGNORE_GCD) && HasGlobalCooldown())"
- if (strict && !(_triggeredCastFlags & TRIGGERED_IGNORE_GCD) && HasGlobalCooldown() && m_spellInfo->Id != 5019)
- /* ------------------------------------------------------- */
- // in "void Spell::SendCastResult("
- // after "if (result == SPELL_CAST_OK)"
- if (spellInfo->Id == 5019) return;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement