[12733] Implemented spells 21562, 27683

This commit is contained in:
sanctum32 2013-11-18 05:29:58 +02:00 committed by Antz
parent a5d17dbf86
commit 27ff3eec3f
3 changed files with 30 additions and 4 deletions

View file

@ -1603,8 +1603,6 @@ void WorldSession::HandleObjectUpdateFailedOpcode(WorldPacket& recv_data)
recv_data.ReadGuidMask<6, 7, 4, 0, 1, 5, 3, 2>(guid); recv_data.ReadGuidMask<6, 7, 4, 0, 1, 5, 3, 2>(guid);
recv_data.ReadGuidBytes<6, 7, 2, 3, 1, 4, 0, 5>(guid); recv_data.ReadGuidBytes<6, 7, 2, 3, 1, 4, 0, 5>(guid);
DEBUG_LOG("WORLD: Received CMSG_OBJECT_UPDATE_FAILED from %s (%u) guid: %s", DEBUG_LOG("WORLD: Received CMSG_OBJECT_UPDATE_FAILED from %s (%u) guid: %s", GetPlayerName(), GetAccountId(), guid.GetString().c_str());
GetPlayerName(), GetAccountId(), guid.GetString().c_str());
} }

View file

@ -3233,6 +3233,34 @@ void Spell::EffectDummy(SpellEffectEntry const* effect)
return; return;
} }
break; 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: case SPELLFAMILY_DRUID:
{ {

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "12732" #define REVISION_NR "12733"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__