*Prevent item trade exploit - by Iskander.
*Do not set cooldown for triggered spells. *Do not allow to kill unit twice. --HG-- branch : trunk
This commit is contained in:
+2
-2
@@ -2583,8 +2583,8 @@ void Spell::SendSpellCooldown()
|
||||
return;
|
||||
}
|
||||
|
||||
// have infinity cooldown but set at aura apply
|
||||
if(m_spellInfo->Attributes & SPELL_ATTR_DISABLED_WHILE_ACTIVE)
|
||||
// have infinity cooldown but set at aura apply // do not set cooldown for triggered spells (needed by reincarnation)
|
||||
if(m_spellInfo->Attributes & SPELL_ATTR_DISABLED_WHILE_ACTIVE || m_IsTriggeredSpell)
|
||||
return;
|
||||
|
||||
_player->AddSpellAndCategoryCooldowns(m_spellInfo,m_CastItem ? m_CastItem->GetEntry() : 0, this);
|
||||
|
||||
Reference in New Issue
Block a user