*Fix mutilate. do not require behind target. By Sorken.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-17 11:36:00 -06:00
parent a90d7fb45c
commit eafa0eb5df

View File

@@ -3748,8 +3748,8 @@ uint8 Spell::CanCast(bool strict)
if( m_spellInfo->AttributesEx2 == 0x100000 && (m_spellInfo->AttributesEx & 0x200) == 0x200 && target->HasInArc(M_PI, m_caster)
//Exclusion for Pounce: Facing Limitation was removed in 2.0.1, but it still uses the same, old Ex-Flags
&& (!(m_spellInfo->SpellFamilyName == SPELLFAMILY_DRUID && m_spellInfo->SpellFamilyFlags.IsEqual(0x20000,0,0)))
//Multilate - same reason
&& (!(m_spellInfo->SpellFamilyName == SPELLFAMILY_ROGUE && m_spellInfo->SpellFamilyFlags[1] & 200000)))
//Mutilate no longer requires you be behind the target as of patch 3.0.3
&& (!(m_spellInfo->SpellFamilyName == SPELLFAMILY_ROGUE && m_spellInfo->SpellFamilyFlags[1] & 20000000000000)))
{
SendInterrupted(2);
return SPELL_FAILED_NOT_BEHIND;