aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkrz <none@none>2009-06-24 12:53:22 +0200
committerkrz <none@none>2009-06-24 12:53:22 +0200
commit13110a35c469d3a9087e604aaf336237c0573a3a (patch)
tree5e782a8d288eea05e8eda76004626d20ef443753 /src
parent0319f6a269b8b605604f53219f355dae27edf8f2 (diff)
Do not check cooldown for triggered spells (triggered spells shouldn't trigger if they have cooldown)
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Spell.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index a7fb8840158..d5156962f0c 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -3418,11 +3418,12 @@ void Spell::TriggerSpell()
uint8 Spell::CanCast(bool strict)
{
// check cooldowns to prevent cheating
- if(m_caster->GetTypeId()==TYPEID_PLAYER && ((Player*)m_caster)->HasSpellCooldown(m_spellInfo->Id))
+ if(!m_IsTriggeredSpell && m_caster->GetTypeId()==TYPEID_PLAYER && ((Player*)m_caster)->HasSpellCooldown(m_spellInfo->Id))
{
- if(m_triggeredByAuraSpell)
- return SPELL_FAILED_DONT_REPORT;
- else
+ //triggered spells shouldn't be casted (cooldown check in handleproctriggerspell)
+ // if(m_triggeredByAuraSpell)
+ // return SPELL_FAILED_DONT_REPORT;
+ // else
return SPELL_FAILED_NOT_READY;
}