xxx
This commit is contained in:
parent
5432d5e621
commit
c6d699e8ef
@ -192,17 +192,11 @@ void Totem::SetTypeBySummonSpell(SpellEntry const* spellProto)
|
|||||||
|
|
||||||
bool Totem::IsImmuneToSpellEffect(SpellEntry const* spellInfo, SpellEffectIndex index, bool castOnSelf) const
|
bool Totem::IsImmuneToSpellEffect(SpellEntry const* spellInfo, SpellEffectIndex index, bool castOnSelf) const
|
||||||
{
|
{
|
||||||
// Check for Mana Spring & Healing Stream totems
|
// Totem may affected by some specific spells
|
||||||
switch (spellInfo->SpellFamilyName)
|
// Mana Spring, Healing stream, Mana tide
|
||||||
{
|
// Flags : 0x00000002000 | 0x00000004000 | 0x00004000000 -> 0x00004006000
|
||||||
case SPELLFAMILY_SHAMAN:
|
if (spellInfo->SpellFamilyName == SPELLFAMILY_SHAMAN && spellInfo->IsFitToFamilyMask(UI64LIT(0x00004006000)))
|
||||||
if (spellInfo->IsFitToFamilyMask(UI64LIT(0x00000002000)) ||
|
return false;
|
||||||
spellInfo->IsFitToFamilyMask(UI64LIT(0x00000004000)) || spellInfo->IsFitToFamilyMask(UI64LIT(0x00004000000)))
|
|
||||||
{ return false; }
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (spellInfo->Effect[index])
|
switch (spellInfo->Effect[index])
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user