Core/Spells: Fix Shaman talent Storm, Earth, Fire (Earthgrab part) in case of using Earthbind totem trough Call of the Elements etc.

This commit is contained in:
Machiavelli
2011-07-31 21:58:27 +02:00
parent 58f10c74f7
commit d4a68025c7
+2 -3
View File
@@ -6987,9 +6987,8 @@ void Spell::EffectCastButtons(SpellEffIndex effIndex)
if (m_caster->GetPower(POWER_MANA) < cost)
continue;
m_caster->CastSpell(unitTarget, spell_id, true);
m_caster->ModifyPower(POWER_MANA, -(int32)cost);
p_caster->AddSpellAndCategoryCooldowns(spellInfo, 0);
TriggerCastFlags triggerFlags = TriggerCastFlags(TRIGGERED_IGNORE_GCD | TRIGGERED_IGNORE_CAST_IN_PROGRESS | TRIGGERED_CAST_DIRECTLY | TRIGGERED_ALLOW_PROC_EVENTS);
m_caster->CastSpell(unitTarget, spell_id, triggerFlags);
}
}