aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShocker <none@none>2010-08-24 14:38:00 +0300
committerShocker <none@none>2010-08-24 14:38:00 +0300
commitc728681422b9a5446e021986ccc870536a11d188 (patch)
tree9863d9ea25421d1999935000a90a5c5dcb41aa6e /src
parenteedce26148d99ea96b405bdcae29746e58147235 (diff)
* Remove some old checks in aura stacking and change default stack rule to true
* Add stacking rules for Mark/Gift of the Wild, Power Word/Prayer of Fortitude, Prayer of/Shadow protection NOTE: Although highly unlikely, this *might* cause some stacking problems until we properly define rest of the stacking rules in spell_group, so report any stacking issues * Some missing lads from THANKS file --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellMgr.cpp29
1 files changed, 1 insertions, 28 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index 804d939eeb1..c45af051af5 100644
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -3168,34 +3168,7 @@ bool SpellMgr::CanAurasStack(SpellEntry const *spellInfo_1, SpellEntry const *sp
return false;
}
- // use icon to check generic spells
- if (!spellInfo_1->SpellFamilyName)
- {
- if (!spellInfo_1->SpellIconID || spellInfo_1->SpellIconID == 1
- || spellInfo_1->SpellIconID != spellInfo_2->SpellIconID)
- return true;
- }
- // use familyflag to check class spells
- else
- {
- if (!spellInfo_1->SpellFamilyFlags
- || spellInfo_1->SpellFamilyFlags != spellInfo_2->SpellFamilyFlags)
- return true;
- }
-
- //use data of highest rank spell(needed for spells which ranks have different effects)
- spellInfo_1 = sSpellStore.LookupEntry(spellId_1);
- spellInfo_2 = sSpellStore.LookupEntry(spellId_2);
-
- //if spells do not have the same effect or aura or miscvalue, they will stack
- for (uint32 i = 0; i < MAX_SPELL_EFFECTS; ++i)
- if (spellInfo_1->Effect[i] != spellInfo_2->Effect[i]
- || spellInfo_1->EffectApplyAuraName[i] != spellInfo_2->EffectApplyAuraName[i]
- || spellInfo_1->EffectMiscValue[i] != spellInfo_2->EffectMiscValue[i]) // paladin resist aura
- return true; // need itemtype check? need an example to add that check
-
- // different spells with same effect
- return false;
+ return true;
}
bool CanSpellDispelAura(SpellEntry const * dispelSpell, SpellEntry const * aura)