diff options
| author | megamage <none@none> | 2009-05-06 17:00:11 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-05-06 17:00:11 -0500 |
| commit | 39dc2d1c4db526d3ad13919f238f0998b2bf2654 (patch) | |
| tree | 4bb234535adbb3848664114931cce95186a9bd25 /src | |
| parent | 6a3b34441d765d7af039b7e1c5357f267d5f1af6 (diff) | |
*Use custom spell intead of hard code for EffectDestroyAllTotems. By Maxxie
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/SpellEffects.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index ffb3a38c9fb..5d4ef83ed11 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -6015,7 +6015,7 @@ void Spell::EffectSummonDeadPet(uint32 /*i*/) void Spell::EffectDestroyAllTotems(uint32 /*i*/) { - float mana = 0; + int32 mana = 0; for(int slot = SUMMON_SLOT_TOTEM; slot < MAX_TOTEM_SLOT; ++slot) { if(!m_caster->m_SummonSlot[slot]) @@ -6036,8 +6036,8 @@ void Spell::EffectDestroyAllTotems(uint32 /*i*/) } mana = mana * damage / 100; - int32 gain = m_caster->ModifyPower(POWER_MANA,int32(mana)); - m_caster->SendEnergizeSpellLog(m_caster, m_spellInfo->Id, gain, POWER_MANA); + if (mana) + m_caster->CastCustomSpell(m_caster, 39104, &mana, NULL, NULL, true); } void Spell::EffectDurabilityDamage(uint32 i) |
