diff options
author | QAston <none@none> | 2009-07-28 14:53:08 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-07-28 14:53:08 +0200 |
commit | 288fe6ef218d90c5c9f7161335e5feaa60268b83 (patch) | |
tree | b18b5f764ffe6dea83d206d6ff6fc247fef21ccc | |
parent | cf1bfd16402a4f3595f91cc25ca3cb24ec2cc5f3 (diff) |
*Restore correct drop of charges after EventAi cancast fix.
--HG--
branch : trunk
-rw-r--r-- | src/game/Spell.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index f69c5124cc6..e6af34e9429 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -2622,8 +2622,12 @@ void Spell::prepare(SpellCastTargets const* targets, AuraEffect* triggeredByAura } } + if (m_caster->GetTypeId()==TYPEID_PLAYER) + ((Player*)m_caster)->SetSpellModTakingSpell(this, true); // Fill cost data (not use power for item casts m_powerCost = m_CastItem ? 0 : CalculatePowerCost(m_spellInfo, m_caster, m_spellSchoolMask); + if (m_caster->GetTypeId()==TYPEID_PLAYER) + ((Player*)m_caster)->SetSpellModTakingSpell(this, false); SpellCastResult result = CheckCast(true); if(result != SPELL_CAST_OK && !IsAutoRepeat()) //always cast autorepeat dummy for triggering |