Totem* casts.

--HG--
branch : trunk
This commit is contained in:
raczman committed 2010-03-10 07:58:11 +01:00
1 parent ac270db251
commit 7fd1789109
4 files changed
+9 -9

No files matched your search

+2 -2
View File
@@ -6966,7 +6966,7 @@ void Spell::EffectDestroyAllTotems(uint32 /*i*/)
mana += spellInfo->manaCost;
mana += spellInfo->ManaCostPercentage * m_caster->GetCreateMana() / 100;
}
((Totem*)totem)->UnSummon();
totem->ToTotem()->UnSummon();
}
}
mana = mana * damage / 100;
@@ -7430,7 +7430,7 @@ void Spell::SummonGuardian(uint32 i, uint32 entry, SummonPropertiesEntry const *
return;
if (caster->isTotem())
caster = ((Totem*)caster)->GetOwner();
caster = caster->ToTotem()->GetOwner();
// in another case summon new
uint8 level = caster->getLevel();