Restore used spell mods if spell cast fails.

--HG--
branch : trunk
This commit is contained in:
thenecromancer
2009-05-28 23:05:52 +02:00
parent 39dd09532b
commit bc55209b3e
3 changed files with 30 additions and 3 deletions
+1 -1
View File
@@ -1447,6 +1447,7 @@ class TRINITY_DLL_SPEC Player : public Unit
bool IsAffectedBySpellmod(SpellEntry const *spellInfo, SpellModifier *mod, Spell const* spell = NULL);
template <class T> T ApplySpellMod(uint32 spellId, SpellModOp op, T &basevalue, Spell const* spell = NULL);
void RemoveSpellMods(Spell const* spell);
void RestoreSpellMods(Spell const* spell);
bool HasSpellCooldown(uint32 spell_id) const
{
@@ -2396,4 +2397,3 @@ template <class T> T Player::ApplySpellMod(uint32 spellId, SpellModOp op, T &bas
return T(diff);
}
#endif