mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[8969] Ignore in stacking check pure dummy spells.
One more hacks to SpellMgr::IsNoStackSpellDueToSpell This fix for example 53601 with 20911 stacking.
This commit is contained in:
parent
f0e7f01a7b
commit
5e2c6e6b86
2 changed files with 10 additions and 1 deletions
|
|
@ -1722,13 +1722,22 @@ bool SpellMgr::IsNoStackSpellDueToSpell(uint32 spellId_1, uint32 spellId_2) cons
|
|||
if (spellInfo_1->SpellFamilyName != spellInfo_2->SpellFamilyName)
|
||||
return false;
|
||||
|
||||
bool dummy_only = true;
|
||||
for (int i = 0; i < 3; ++i)
|
||||
{
|
||||
if (spellInfo_1->Effect[i] != spellInfo_2->Effect[i] ||
|
||||
spellInfo_1->EffectItemType[i] != spellInfo_2->EffectItemType[i] ||
|
||||
spellInfo_1->EffectMiscValue[i] != spellInfo_2->EffectMiscValue[i] ||
|
||||
spellInfo_1->EffectApplyAuraName[i] != spellInfo_2->EffectApplyAuraName[i])
|
||||
return false;
|
||||
|
||||
// ignore dummy only spells
|
||||
if(spellInfo_1->Effect[i] && spellInfo_1->Effect[i] != SPELL_EFFECT_DUMMY && spellInfo_1->EffectApplyAuraName[i] != SPELL_AURA_DUMMY)
|
||||
dummy_only = false;
|
||||
}
|
||||
if (dummy_only)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8968"
|
||||
#define REVISION_NR "8969"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue