Skip to content

Commit

Permalink
[c12835] Totem are immune to their own spell workaround fix
Browse files Browse the repository at this point in the history
More info on old repos -> mangosArchives/Mangos-One-server-old@bd31a09

(based on commit [12630] - 3a1b22b)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
  • Loading branch information
Velvet authored and xfurry committed Apr 25, 2014
1 parent a4e4280 commit b5037e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/game/Totem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,14 @@ void Totem::SetTypeBySummonSpell(SpellEntry const* spellProto)

bool Totem::IsImmuneToSpellEffect(SpellEntry const* spellInfo, SpellEffectIndex index, bool castOnSelf) const
{
// Totem may affected by some specific spells
// Mana Spring, Healing stream, Mana tide
// Flags : 0x00000002000 | 0x00000004000 | 0x00004000000 -> 0x00004006000
if (spellInfo->GetSpellFamilyName() == SPELLFAMILY_SHAMAN && spellInfo->IsFitToFamilyMask(UI64LIT(0x00004006000)))
return false;

SpellEffectEntry const* spellEffect = spellInfo->GetSpellEffect(index);
if(spellEffect)
if (spellEffect)
{
// TODO: possibly all negative auras immune?
switch(spellEffect->Effect)
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12834"
#define REVISION_NR "12835"
#endif // __REVISION_NR_H__

0 comments on commit b5037e5

Please sign in to comment.