aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-02 17:34:49 -0600
committermegamage <none@none>2009-02-02 17:34:49 -0600
commit4e13ff356ffa9a9ec2ca58ebdc3cfe7cea0dcca8 (patch)
treef2cf75445c95ef12d7fb8abda3e1c591626c651b /src/game/Spell.cpp
parentf25a150566c7b1b5301b33367dfa1f58f4a1458d (diff)
parentcccfd132dd4388f42da8087a9ad5ff54b7ec4808 (diff)
*Merge.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index c97e35f1396..0c53ec763c5 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -3242,6 +3242,12 @@ void Spell::TakePower()
{
if(ihit->missCondition != SPELL_MISS_NONE && ihit->missCondition != SPELL_MISS_MISS/* && ihit->targetGUID!=m_caster->GetGUID()*/)
hit = false;
+ if (ihit->missCondition != SPELL_MISS_NONE)
+ {
+ //lower spell cost on fail (by talent aura)
+ if(Player *modOwner = ((Player*)m_caster)->GetSpellModOwner())
+ modOwner->ApplySpellMod(m_spellInfo->Id, SPELLMOD_SPELL_COST_REFUND_ON_FAIL, m_powerCost);
+ }
break;
}
if(hit && NeedsComboPoints(m_spellInfo))