Core/Players: removed an unused spellmod helper

This commit is contained in:
Ovahlord committed 2022-09-12 09:15:32 +02:00
1 parent 0e4d77ddb1
commit 7e72ee241f
2 files changed
-9

No files matched your search

@@ -21622,14 +21622,6 @@ void Player::AddSpellMod(SpellModifier* mod, bool apply)
}
}
bool Player::HasSpellModApplied(SpellModifier* mod, Spell* spell)
{
if (!spell)
return false;
return spell->m_appliedMods.count(mod->ownerAura) != 0;
}
void Player::ApplyModToSpell(SpellModifier* mod, Spell* spell)
{
if (!spell)
-1
View File
@@ -1648,7 +1648,6 @@ class TC_GAME_API Player : public Unit, public GridObject<Player>
template <class T>
void ApplySpellMod(uint32 spellId, SpellModOp op, T& basevalue, Spell* spell = nullptr) const;
static void ApplyModToSpell(SpellModifier* mod, Spell* spell);
static bool HasSpellModApplied(SpellModifier* mod, Spell* spell);
void SetSpellModTakingSpell(Spell* spell, bool apply);
void SendSpellModifiers() const;