Core/Spells: remove SetEffectDamage helper since SetEffectValue serves the exact same purpose

This commit is contained in:
Ovahlord committed 2019-02-13 01:31:46 +01:00
1 parent bdb8b921dd
commit f2503cd7e1
3 files changed
+1 -12

No files matched your search

-10
View File
@@ -555,16 +555,6 @@ void SpellScript::SetHitDamage(int32 damage)
m_spell->m_damage = damage;
}
void SpellScript::SetEffectDamage(int32 damage)
{
if (!IsInTargetHook())
{
TC_LOG_ERROR("scripts", "Script: `%s` Spell: `%u`: function SpellScript::SetHitDamage was called, but function has no effect in current hook!", m_scriptName->c_str(), m_scriptSpellId);
return;
}
m_spell->damage = damage;
}
int32 SpellScript::GetHitHeal() const
{
if (!IsInTargetHook())