aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-18 11:06:54 -0600
committermegamage <none@none>2009-01-18 11:06:54 -0600
commiteb21e69c3adf4f22366557a8a9b4c9db2a62408b (patch)
tree9f3c5fa5d2eff29a2273a4da647eaafa70448d56 /src
parentf4991543db423f246fb806f0af462d0a610f6b95 (diff)
*Fix the bug that shaman's elemental attack shaman himself.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index ab35c5f3d76..c04b08d80f0 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -3579,7 +3579,8 @@ void Spell::EffectSummonGuardian(uint32 i)
}
// trigger
- if(!m_originalCaster || m_originalCaster->GetTypeId() != TYPEID_PLAYER /*m_spellInfo->Id == 40276*/)
+ if(!m_originalCaster || m_originalCaster->GetTypeId() != TYPEID_PLAYER
+ && !((Creature*)m_originalCaster)->isTotem()/*m_spellInfo->Id == 40276*/)
{
EffectSummonWild(i);
return;