[9458] Add exception for spell 51912 and then trigger 45668 as expected

Also remove commented code for spell 45668

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-02-26 19:53:40 +01:00
parent 530be51dc5
commit 09b4acc53e
3 changed files with 11 additions and 5 deletions

View file

@ -4579,6 +4579,14 @@ void Aura::HandlePeriodicTriggerSpell(bool apply, bool /*Real*/)
if (m_removeMode == AURA_REMOVE_BY_DEFAULT && GetEffIndex() + 1 < MAX_EFFECT_INDEX)
m_target->CastSpell(m_target, m_spellProto->CalculateSimpleValue(SpellEffectIndex(GetEffIndex()+1)), true);
return;
case 51912: // Ultra-Advanced Proto-Typical Shortening Blaster
if (m_removeMode == AURA_REMOVE_BY_DEFAULT && m_duration <= 0)
{
if (Unit* pCaster = GetCaster())
pCaster->CastSpell(m_target, m_spellProto->EffectTriggerSpell[GetEffIndex()], true, NULL, this);
}
return;
default:
break;
}