Skip to content

Commit

Permalink
[12630] 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

Fix cmangos/issues#68 (but need to be backported)
  • Loading branch information
Velvet authored and Cyberium committed Apr 9, 2014
1 parent ef356e1 commit 3a1b22b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/game/Totem.cpp
Expand Up @@ -183,6 +183,12 @@ 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->SpellFamilyName == SPELLFAMILY_SHAMAN && spellInfo->IsFitToFamilyMask(UI64LIT(0x00004006000)))
return false;

switch (spellInfo->Effect[index])
{
case SPELL_EFFECT_ATTACK_ME:
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12629"
#define REVISION_NR "12630"
#endif // __REVISION_NR_H__

1 comment on commit 3a1b22b

@scotty0100
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to note: This is missing from most recent batch of backports for TBC/Classic cores. Not sure who usually is in charge of backports @cyberium or @xfurry

Please sign in to comment.