aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQAston <none@none>2009-05-23 14:06:07 +0200
committerQAston <none@none>2009-05-23 14:06:07 +0200
commited8691ebad87ca8c844cbd0fe752a2010f1f4206 (patch)
tree0a20918ad74e145bbeef416cbaaad45c4e84a70f /src
parentf5f1caf6b67f53a4a2533fdd6ac260000fcb2bcc (diff)
*Fix a typo which disallows ADD_TARGET_TRIGGER auras to proc from selfcast.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Spell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 9d548da4ed4..5a7c5578052 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -1223,7 +1223,7 @@ void Spell::DoSpellHitOnUnit(Unit *unit, const uint32 effectMask)
((Creature*)m_caster)->AI()->SpellHitTarget(unit, m_spellInfo);
// spells with this flag can trigger only if not selfcast (eviscerate for example)
- if (m_ChanceTriggerSpells.size() && (!(m_spellInfo->AttributesEx4 & SPELL_ATTR_EX4_CANT_PROC_FROM_SELFCAST | SPELL_ATTR_EX4_UNK4) || unit!=m_caster))
+ if (m_ChanceTriggerSpells.size() && (!(m_spellInfo->AttributesEx4 & SPELL_ATTR_EX4_CANT_PROC_FROM_SELFCAST | SPELL_ATTR_EX4_UNK4) && unit==m_caster))
{
int _duration=0;
for(ChanceTriggerSpells::const_iterator i = m_ChanceTriggerSpells.begin(); i != m_ChanceTriggerSpells.end(); ++i)