aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-07-01 16:18:37 +0200
committerQAston <none@none>2009-07-01 16:18:37 +0200
commitfd86e6a369b03d496988673f97409c5b74e99c52 (patch)
treeca8573e0a44ac5e68cb7d641d2f72f478c8bd38c /src/game/Spell.cpp
parent6c7e41cf87d61411296f18660e3ca538d51e2096 (diff)
*Fix possible exploits with flying paths.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 656eb106152..214fc2cc0bc 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -3278,9 +3278,10 @@ void Spell::finish(bool ok)
}
// potions disabled by client, send event "not in combat" if need
- if (!m_triggeredByAuraSpell && m_caster->GetTypeId() == TYPEID_PLAYER)
+ if (m_caster->GetTypeId() == TYPEID_PLAYER)
{
- ((Player*)m_caster)->UpdatePotionCooldown(this);
+ if (!m_triggeredByAuraSpell)
+ ((Player*)m_caster)->UpdatePotionCooldown(this);
// triggered spell pointer can be not set in some cases
// this is needed for proper apply of triggered spell mods