Core/Spells: Fix DK Ghoul's damage after ad8eb434c0. I misread 'SpellScript::m_damage' for 'SpellScript::damage'.

By @joschiwald
This commit is contained in:
Discover-
2014-01-31 10:37:55 +01:00
parent efeb54139e
commit a242662ae6
3 changed files with 14 additions and 1 deletions

View File

@@ -583,9 +583,21 @@ int32 SpellScript::GetEffectValue() const
TC_LOG_ERROR("scripts", "Script: `%s` Spell: `%u`: function SpellScript::GetEffectValue was called, but function has no effect in current hook!", m_scriptName->c_str(), m_scriptSpellId);
return 0;
}
return m_spell->damage;
}
void SpellScript::SetEffectValue(int32 value)
{
if (!IsInEffectHook())
{
TC_LOG_ERROR("scripts", "Script: `%s` Spell: `%u`: function SpellScript::SetEffectValue was called, but function has no effect in current hook!", m_scriptName->c_str(), m_scriptSpellId);
return;
}
m_spell->damage = value;
}
Item* SpellScript::GetCastItem()
{
return m_spell->m_CastItem;