*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:
QAston
2009-04-13 21:59:44 +02:00
parent ae7bfa3ae2
commit 0583b4bd04
3 changed files with 11 additions and 7 deletions

View File

@@ -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);