*Way more correct way of selecting caster and target for Periodic Trigger auras.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-02-04 18:34:46 +01:00
parent 61cc641384
commit 3df5bb041c
4 changed files with 53 additions and 37 deletions
+2
View File
@@ -922,6 +922,8 @@ class SpellMgr
{
spellid_1 = GetFirstSpellInChain(spellid_1);
spellid_2 = GetFirstSpellInChain(spellid_2);
if (spellid_1 == spellid_2)
return SPELL_GROUP_STACK_RULE_DEFAULT;
// find SpellGroups which are common for both spells
SpellSpellGroupMapBounds spellGroup1 = GetSpellSpellGroupMapBounds(spellid_1);
std::set<SpellGroup> groups;