[c12534] Implement spell effects 50742, 50810 and 61546

(based on commit [12387] - 0bb915d)
This commit is contained in:
Xfurry 2013-03-03 17:36:22 +02:00 committed by Antz
parent 3ff9317e54
commit 2502fb8a46
3 changed files with 26 additions and 2 deletions

View file

@ -7895,6 +7895,28 @@ void Spell::EffectScriptEffect(SpellEffectEntry const* effect)
((Player*)caster)->RemoveSpellCategoryCooldown(82, true);
return;
}
case 50742: // Ooze Combine
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
return;
m_caster->CastSpell(unitTarget, 50747, true);
((Creature*)m_caster)->ForcedDespawn();
return;
}
case 50810: // Shatter
case 61546: // Shatter (h)
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
return;
if (!unitTarget->HasAura(50812))
return;
unitTarget->RemoveAurasDueToSpell(50812);
unitTarget->CastSpell(unitTarget, m_spellInfo->Id == 50810 ? 50811 : 61547 , true, NULL, NULL, m_caster->GetObjectGuid());
return;
}
case 50894: // Zul'Drak Rat
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)