Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case SPELLFAMILY_WARLOCK:
- {
- switch (m_spellInfo->Id)
- {
- // Spell Lock
- case 19647:
- {
- if (!unitTarget)
- return;
- // Copia de SpellEffects::EffectInterruptCast
- for ( uint32 i = CURRENT_FIRST_NON_MELEE_SPELL; i < CURRENT_MAX_SPELL; i++)
- {
- if (Spell* spell = unitTarget->GetCurrentSpell(CurrentSpellTypes(i)))
- {
- SpellInfo const* curSpellInfo = spell->m_spellInfo;
- if ((Spell->getState() == SPELL_STATE_CASTING
- || (spell->getState() == SPELL_STATE_PREPARING && spell->CalcCastTime() > 0.0f))
- && curSpellInfo->InterruptFlags & SPELL_INTERRUPT_FLAG_INTERRUPT && curSpellInfo->PreventionType == SPELL_PREVENTION_TYPE_SILENCE)
- {
- if (m_originalCaster)
- {
- // Agregamos un cd de 6 segundos a esa escuela de magia
- unitTarget->ProhibitSpellSchool(curSpellInfo->GetSchoolMask(), 6000);
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement