diff options
| author | QAston <none@none> | 2009-04-13 20:50:52 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2009-04-13 20:50:52 +0200 |
| commit | f46d1b3b81e1d1b5cdca1d84f78fd9e39041a297 (patch) | |
| tree | ee15ae5b11299bdb39f2e0c45868dfd8d788db91 /src/game/Spell.cpp | |
| parent | b972327979988d5221b51b22a120874107094324 (diff) | |
*Add some debug info to procflag
*Fix Sudden Death.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
| -rw-r--r-- | src/game/Spell.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 33f4d05ea0e..4655d91b148 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -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 |
