aboutsummaryrefslogtreecommitdiff
path: root/src/game/Totem.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-05-03 18:03:01 +0200
committerQAston <none@none>2009-05-03 18:03:01 +0200
commit977295bb59ebf896fdde3814614396642a87536b (patch)
tree87f65d411080ac184560a50bf552bd8160e23894 /src/game/Totem.cpp
parent0085572de163a0efc50be8d2225aae0be52c9ffa (diff)
*Searing totem is no longer kamikaze
--HG-- branch : trunk
Diffstat (limited to 'src/game/Totem.cpp')
-rw-r--r--src/game/Totem.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/game/Totem.cpp b/src/game/Totem.cpp
index af36c43a999..c7a81be29ef 100644
--- a/src/game/Totem.cpp
+++ b/src/game/Totem.cpp
@@ -84,6 +84,15 @@ void Totem::InitSummon(uint32 duration)
data << GetGUID();
SendMessageToSet(&data,true);
+ // Get spell casted by totem
+ SpellEntry const * totemSpell = sSpellStore.LookupEntry(GetSpell());
+ if (totemSpell)
+ {
+ // If spell have cast time -> so its active totem
+ if (GetSpellCastTime(totemSpell))
+ m_type = TOTEM_ACTIVE;
+ }
+
if(m_type == TOTEM_PASSIVE)
CastSpell(this, GetSpell(), true);
@@ -93,15 +102,6 @@ void Totem::InitSummon(uint32 duration)
m_duration = duration;
SetLevel(m_owner->getLevel());
-
- // Get spell casted by totem
- SpellEntry const * totemSpell = sSpellStore.LookupEntry(GetSpell());
- if (totemSpell)
- {
- // If spell have cast time -> so its active totem
- if (GetSpellCastTime(totemSpell))
- m_type = TOTEM_ACTIVE;
- }
}
void Totem::UnSummon()