aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-04-18 22:43:35 +0200
committerQAston <none@none>2009-04-18 22:43:35 +0200
commit08976f5c6e8e7f68ca11f1acd218d0aed2e24af4 (patch)
tree5dea0884b6097068ae3afdb53d39994aaed923c1 /src/game/Unit.cpp
parenta731f9a3c000a93638b629a32d202e4a67b5b5fd (diff)
*Fix a typo in latest rev
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 850ee996d14..eedfe3d1973 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -12350,6 +12350,13 @@ bool Unit::IsTriggeredAtSpellProcEvent(Unit *pVictim, Aura * aura, SpellEntry co
if (!EventProcFlag)
return false;
+ // Additional checks for triggered spells
+ if (procExtra & PROC_EX_INTERNAL_TRIGGERED)
+ {
+ if (!(spellProto->AttributesEx3 & SPELL_ATTR_EX3_CAN_PROC_TRIGGERED))
+ return false;
+ }
+
// Check spellProcEvent data requirements
if(!spellmgr.IsSpellProcEventCanTriggeredBy(spellProcEvent, EventProcFlag, procSpell, procFlag, procExtra, active))
return false;