*Check category instead of flags for some spells. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-08-07 14:40:37 -05:00
1 parent fe3ba612d9
commit 3549c0bddd
3 files changed
+8 -9

No files matched your search

+4 -5
View File
@@ -6011,11 +6011,10 @@ bool Spell::CheckTargetCreatureType(Unit* target) const
{
uint32 spellCreatureTargetMask = m_spellInfo->TargetCreatureType;
// Curse of Doom or Exorcism
// These spells cannot be cast on players, however there is no clientside check for them
// so there is no attribute flag in dbcs which would mark these spells - we need to check them by spellfamily
if(m_spellInfo->SpellFamilyName==SPELLFAMILY_WARLOCK && m_spellInfo->SpellFamilyFlags.IsEqual(0,0x02,0)
|| m_spellInfo->SpellFamilyName==SPELLFAMILY_PALADIN && m_spellInfo->SpellFamilyFlags.IsEqual(0,0x2,0))
// 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)