int32 SpellScript::GetFinalDamage()
{
    if (!IsInAfterHitPhase())
    {
        sLog->outError("TSCR: Script: `%s` Spell: `%u`: function SpellScript::GetFinalDamage was called while spell not in after-hit phase!", m_scriptName, m_scriptSpellId);
        return 0;
    }
    return m_spell->m_final_damage;
}
Esempio n. 2
0
int32 SpellScript::GetTrueDamage()
{
    if (!IsInAfterHitPhase())
    {
        sLog->outError(LOG_FILTER_TSCR, "Script: `%s` Spell: `%u`: function SpellScript::GetHitHeal was called while spell not in after-hit phase!", m_scriptName->c_str(), m_scriptSpellId);
        return NULL;
    }
    return m_spell->m_true_damage;
}
Esempio n. 3
0
int32 SpellScript::GetTrueDamage() { return !IsInAfterHitPhase() ? NULL : m_spell->m_true_damage; }