*Fix cooldown set for Reincarnation

*Change some aura interrupt flags description to handle stealth breaking correctly.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-04-12 16:18:55 +02:00
parent 7409df2dc9
commit fcbdb10122
4 changed files with 11 additions and 8 deletions

View File

@@ -935,7 +935,8 @@ void Aura::_AddAura()
// set infinity cooldown state for spells
if(caster && caster->GetTypeId() == TYPEID_PLAYER)
{
if (m_spellProto->Attributes & SPELL_ATTR_DISABLED_WHILE_ACTIVE)
// Do not apply cooldown for caster passive spells (needed by Reincarnation)
if (!(caster->HasSpell(GetId()) && IsPassive()) && !(m_spellProto->Attributes & SPELL_ATTR_DISABLED_WHILE_ACTIVE))
{
Item* castItem = m_castItemGuid ? ((Player*)caster)->GetItemByGuid(m_castItemGuid) : NULL;
((Player*)caster)->AddSpellAndCategoryCooldowns(m_spellProto,castItem ? castItem->GetEntry() : 0, NULL,true);