*Fix a typo that break nearly all channelled spells. Sorry.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-07 16:24:35 -05:00
parent f06e8608cb
commit 76aa9e951c
+2 -2
View File
@@ -2308,8 +2308,8 @@ void Spell::prepare(SpellCastTargets const* targets, AuraEffect* triggeredByAura
ReSetTimer(); ReSetTimer();
//Containers for channeled spells have to be set //Containers for channeled spells have to be set
//TODO:Apply this to all casted spells if needed //TODO:Apply this to all casted spells if needed
// Why check m_casttime? 29350: channelled triggers channelled // Why check duration? 29350: channelled triggers channelled
if(m_IsTriggeredSpell && (!IsChanneledSpell(m_spellInfo) || !m_casttime)) if(m_IsTriggeredSpell && (!IsChanneledSpell(m_spellInfo) || !GetSpellMaxDuration(m_spellInfo)))
cast(true); cast(true);
else else
{ {