*Add some debug info to procflag
*Fix Sudden Death. --HG-- branch : trunk
This commit is contained in:
+1
-2
@@ -3701,7 +3701,6 @@ SpellCastResult Spell::CheckCast(bool strict)
|
||||
|
||||
if(Unit *target = m_targets.getUnitTarget())
|
||||
{
|
||||
|
||||
// target state requirements (not allowed state), apply to self also
|
||||
if(!m_IsTriggeredSpell && m_spellInfo->TargetAuraStateNot && target->HasAuraState(AuraState(m_spellInfo->TargetAuraStateNot), m_spellInfo, m_caster))
|
||||
return SPELL_FAILED_TARGET_AURASTATE;
|
||||
@@ -3715,7 +3714,7 @@ SpellCastResult Spell::CheckCast(bool strict)
|
||||
if(target != m_caster)
|
||||
{
|
||||
// target state requirements (apply to non-self only), to allow cast affects to self like Dirty Deeds
|
||||
if(m_spellInfo->TargetAuraState && !target->HasAuraState(AuraState(m_spellInfo->TargetAuraState), m_spellInfo, m_caster))
|
||||
if(!m_IsTriggeredSpell && m_spellInfo->TargetAuraState && !target->HasAuraState(AuraState(m_spellInfo->TargetAuraState), m_spellInfo, m_caster))
|
||||
return SPELL_FAILED_TARGET_AURASTATE;
|
||||
|
||||
// Not allow casting on flying player
|
||||
|
||||
Reference in New Issue
Block a user