*Searing totem is no longer kamikaze

--HG--
branch : trunk
This commit is contained in:
QAston
2009-05-03 18:03:01 +02:00
parent 0085572de1
commit 977295bb59
3 changed files with 10 additions and 11 deletions
+9 -9
View File
@@ -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()