Core/Misc: Rename Spell::CalcCastTime to Spell::GetCastTime as it does not calculate anything

This commit is contained in:
tobmaps
2011-11-05 05:33:52 +07:00
parent 935527eebe
commit 8fd7720318
3 changed files with 5 additions and 5 deletions

View File

@@ -4341,7 +4341,7 @@ void Spell::EffectInterruptCast(SpellEffIndex effIndex)
SpellInfo const* curSpellInfo = spell->m_spellInfo;
// check if we can interrupt spell
if ((spell->getState() == SPELL_STATE_CASTING
|| (spell->getState() == SPELL_STATE_PREPARING && spell->CalcCastTime() > 0.0f))
|| (spell->getState() == SPELL_STATE_PREPARING && spell->GetCastTime() > 0.0f))
&& curSpellInfo->PreventionType == SPELL_PREVENTION_TYPE_SILENCE
&& ((i == CURRENT_GENERIC_SPELL && curSpellInfo->InterruptFlags & SPELL_INTERRUPT_FLAG_INTERRUPT)
|| (i == CURRENT_CHANNELED_SPELL && curSpellInfo->ChannelInterruptFlags & CHANNEL_INTERRUPT_FLAG_INTERRUPT)))