mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +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
|
|
@ -1603,8 +1603,6 @@ void WorldSession::HandleObjectUpdateFailedOpcode(WorldPacket& recv_data)
|
|||
recv_data.ReadGuidMask<6, 7, 4, 0, 1, 5, 3, 2>(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",
|
||||
|
||||
GetPlayerName(), GetAccountId(), guid.GetString().c_str());
|
||||
DEBUG_LOG("WORLD: Received CMSG_OBJECT_UPDATE_FAILED from %s (%u) guid: %s", GetPlayerName(), GetAccountId(), guid.GetString().c_str());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "12732"
|
||||
#define REVISION_NR "12733"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue