mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 13:37:13 +00:00
[c12534] Implement spell effects 50742, 50810 and 61546
(based on commit [12387] - 0bb915d)
This commit is contained in:
parent
3ff9317e54
commit
2502fb8a46
3 changed files with 26 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue