mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 13:37:13 +00:00
[12733] Implemented spells 21562, 27683
This commit is contained in:
parent
a5d17dbf86
commit
27ff3eec3f
3 changed files with 30 additions and 4 deletions
|
|
@ -3233,6 +3233,34 @@ void Spell::EffectDummy(SpellEffectEntry const* effect)
|
|||
return;
|
||||
}
|
||||
break;
|
||||
|
||||
switch (m_spellInfo->Id)
|
||||
{
|
||||
case 21562: // Power Word: Fortitude
|
||||
{
|
||||
Unit* target = unitTarget;
|
||||
if (!target)
|
||||
target = m_caster;
|
||||
|
||||
if (m_caster->GetTypeId() != TYPEID_PLAYER || target->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
m_caster->CastSpell(target, ((Player*)m_caster)->GetGroup() != ((Player*)target)->GetGroup() ? 79104 : 79105, true, NULL, NULL, m_caster->GetObjectGuid());
|
||||
return;
|
||||
}
|
||||
case 27683: // Shadow Protection
|
||||
{
|
||||
Unit* target = unitTarget;
|
||||
if (!target)
|
||||
target = m_caster;
|
||||
|
||||
if (m_caster->GetTypeId() != TYPEID_PLAYER || target->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
m_caster->CastSpell(target, ((Player*)m_caster)->GetGroup() != ((Player*)target)->GetGroup() ? 79106 : 79107, true, NULL, NULL, m_caster->GetObjectGuid());
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
case SPELLFAMILY_DRUID:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue