*Implement spellhaste mod for Channeled spells.

*Fix build with VCPP.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2009-02-11 20:10:00 +01:00
1 parent 651e7c29eb
commit 40bf3b630a
9 files changed
+77 -16

No files matched your search

+2
View File
@@ -2284,6 +2284,8 @@ void Spell::handle_immediate()
int32 duration = GetSpellDuration(m_spellInfo);
if (duration)
{
//apply haste mods
m_caster->ModSpellCastTime(m_spellInfo, duration);
// Apply duration mod
if(Player* modOwner = m_caster->GetSpellModOwner())
modOwner->ApplySpellMod(m_spellInfo->Id, SPELLMOD_DURATION, duration);