diff options
author | Subv <s.v.h21@hotmail.com> | 2012-04-07 16:20:01 -0500 |
---|---|---|
committer | Subv <s.v.h21@hotmail.com> | 2012-04-07 16:36:43 -0500 |
commit | 7ce33ca0a604f3cc71c0e951029a76e0cbcc7e0a (patch) | |
tree | 6f1511404d8ec869a15abb0ba45c0491380bb87b /src | |
parent | 945566e84ed5b1fcae115d6804511ff42f695a22 (diff) |
Core/Spells: Fixes the rune cooldown when a hit mises the target
Closes #412
Signed-off-by: Subv <s.v.h21@hotmail.com>
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Spells/Spell.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 8759cfd9acc..c6d0784fcc1 100755 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -4340,10 +4340,9 @@ void Spell::TakePower() for (std::list<TargetInfo>::iterator ihit= m_UniqueTargetInfo.begin(); ihit != m_UniqueTargetInfo.end(); ++ihit) if (ihit->targetGUID == targetGUID) { - if (ihit->missCondition != SPELL_MISS_NONE && ihit->missCondition != SPELL_MISS_MISS/* && ihit->targetGUID != m_caster->GetGUID()*/) - hit = false; if (ihit->missCondition != SPELL_MISS_NONE) { + hit = false; //lower spell cost on fail (by talent aura) if (Player* modOwner = m_caster->ToPlayer()->GetSpellModOwner()) modOwner->ApplySpellMod(m_spellInfo->Id, SPELLMOD_SPELL_COST_REFUND_ON_FAIL, m_powerCost); |