aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellMgr.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-04-18 23:08:34 +0200
committerQAston <none@none>2009-04-18 23:08:34 +0200
commitd362d446bdfd98b68e33c5c90e9a61a78ac384ab (patch)
treef6830791987ce27291bc536f3e6facab783130c7 /src/game/SpellMgr.cpp
parent08976f5c6e8e7f68ca11f1acd218d0aed2e24af4 (diff)
*Fix Alchemist's Stone.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r--src/game/SpellMgr.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 328da769b86..c3467ad7e1a 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -1201,8 +1201,12 @@ bool SpellMgr::IsSpellProcEventCanTriggeredBy(SpellProcEventEntry const* spellPr
else // For spells need check school/spell family/family mask
{
// Potions can trigger only if spellfamily given
- if (procSpell->SpellFamilyName == SPELLFAMILY_POTION && !spellProcEvent->spellFamilyName)
+ if (procSpell->SpellFamilyName == SPELLFAMILY_POTION)
+ {
+ if (procSpell->SpellFamilyName == spellProcEvent->spellFamilyName)
+ return true;
return false;
+ }
// Check (if set) for school
if(spellProcEvent->schoolMask && (spellProcEvent->schoolMask & procSpell->SchoolMask) == 0)