[8317] Implement 48801 and ranks work as expected in 3.1.x

Original patch writed by QAston.
Original patch prepared to mangos by KAPATEJIb.
This commit is contained in:
VladimirMangos 2009-08-05 17:49:44 +04:00
parent ba170f92f2
commit dc8bf0f7e7
4 changed files with 13 additions and 3 deletions

View file

@ -5448,8 +5448,10 @@ bool Spell::CheckTargetCreatureType(Unit* target) const
{
uint32 spellCreatureTargetMask = m_spellInfo->TargetCreatureType;
// Curse of Doom : not find another way to fix spell target check :/
if(m_spellInfo->SpellFamilyName==SPELLFAMILY_WARLOCK && m_spellInfo->SpellFamilyFlags == UI64LIT(0x0200000000))
// Curse of Doom & Exorcism: not find another way to fix spell target check :/
if (m_spellInfo->SpellFamilyName==SPELLFAMILY_WARLOCK && m_spellInfo->Category == 1179 ||
// TODO: will be removed in 3.2.x
m_spellInfo->SpellFamilyName==SPELLFAMILY_PALADIN && m_spellInfo->Category == 19)
{
// not allow cast at player
if(target->GetTypeId()==TYPEID_PLAYER)