diff options
author | QAston <none@none> | 2009-07-11 20:06:02 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-07-11 20:06:02 +0200 |
commit | 84644b764412fcf36bd3014fc290b7de5f22f863 (patch) | |
tree | 36c3aa239f7c02816aa29563502232a906c9fdc1 /src/game/SpellMgr.cpp | |
parent | bf5447b469fe957cb9ba27583d5d7f3b4df5f5b6 (diff) |
*Some improvements in procflags:
-handle proc_flag_death
-allow trap selection in spell proc event entry for proc_flag_on_trap
*Add spell_proc_event entry for Lock and Load - by Bengan
*Add spell_proc_event entry for Improved Spell Reflection.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r-- | src/game/SpellMgr.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index b5911954ce7..7c71198d3cd 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -1324,10 +1324,14 @@ bool SpellMgr::IsSpellProcEventCanTriggeredBy(SpellProcEventEntry const* spellPr && !(procExtra & PROC_EX_INTERNAL_HOT)) return false; } + // Trap casts are active by default + if (procFlags & PROC_FLAG_ON_TRAP_ACTIVATION) + active = true; // Always trigger for this - if (procFlags & (PROC_FLAG_KILLED | PROC_FLAG_KILL | PROC_FLAG_ON_TRAP_ACTIVATION)) + if (procFlags & (PROC_FLAG_KILLED | PROC_FLAG_KILL | PROC_FLAG_DEATH)) return true; + if (spellProcEvent) // Exist event data { // Store extra req |