Totem* casts.
--HG-- branch : trunk
This commit is contained in:
1 parent
ac270db251
commit
7fd1789109
4 files changed
+9
-9
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user