aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-04-13 21:59:44 +0200
committerQAston <none@none>2009-04-13 21:59:44 +0200
commit0583b4bd047dba91d8fcdd221a1411658d733d3e (patch)
treefcb075d6762f118fd50f337e97ae80c28c09a6d4 /src/game/Spell.cpp
parentae7bfa3ae2eb8db4d1543f984af44fc4d4cd6239 (diff)
*Prevent item trade exploit - by Iskander.
*Do not set cooldown for triggered spells. *Do not allow to kill unit twice. --HG-- branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 4655d91b148..0e6e9c580bd 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -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);