aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Spells
diff options
context:
space:
mode:
authortobmaps <spambot42@yandex.ru>2011-07-23 03:30:43 +0700
committertobmaps <spambot42@yandex.ru>2011-07-23 03:30:43 +0700
commita0f1a5c78900037827e46ef82277cc293a39e0bd (patch)
tree8a97bbe6729c6d4fe33297c4a6c7aa84f959765b /src/server/scripts/Spells
parent7303adf1eb91e880636d04af1ad04f587934b0f9 (diff)
Core/Spells: Removed remaining part of old global cooldown handler
Diffstat (limited to 'src/server/scripts/Spells')
-rw-r--r--src/server/scripts/Spells/spell_item.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp
index 6d2818e507c..acf92d3a984 100644
--- a/src/server/scripts/Spells/spell_item.cpp
+++ b/src/server/scripts/Spells/spell_item.cpp
@@ -775,7 +775,7 @@ class spell_item_red_rider_air_rifle : public SpellScriptLoader
GetCaster()->CastSpell(GetCaster(), SPELL_AIR_RIFLE_HOLD_VISUAL, true);
// needed because this spell shares GCD with its triggered spells (which must not be cast with triggered flag)
if (Player* player = GetCaster()->ToPlayer())
- player->RemoveGlobalCooldown(GetSpellInfo());
+ player->GetGlobalCooldownMgr().CancelGlobalCooldown(GetSpellInfo());
if (urand(0, 4))
GetCaster()->CastSpell(GetHitUnit(), SPELL_AIR_RIFLE_SHOOT, false);
else