From 737469cfaaaf45fe700ae8a9673015b88afd0b00 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 5 Jun 2016 17:57:19 +0200 Subject: Core/PacketIO: Update movement packets --- src/server/scripts/Commands/cs_misc.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/server/scripts') diff --git a/src/server/scripts/Commands/cs_misc.cpp b/src/server/scripts/Commands/cs_misc.cpp index dafe9a214d5..dd087a63146 100644 --- a/src/server/scripts/Commands/cs_misc.cpp +++ b/src/server/scripts/Commands/cs_misc.cpp @@ -895,12 +895,15 @@ public: static bool HandleUnstuckCommand(ChatHandler* handler, char const* args) { +#define SPELL_UNSTUCK_ID 7355 +#define SPELL_UNSTUCK_VISUAL 2683 + // No args required for players if (handler->GetSession() && !handler->GetSession()->HasPermission(rbac::RBAC_PERM_COMMANDS_USE_UNSTUCK_WITH_ARGS)) { // 7355: "Stuck" if (Player* player = handler->GetSession()->GetPlayer()) - player->CastSpell(player, 7355, false); + player->CastSpell(player, SPELL_UNSTUCK_ID, false); return true; } @@ -921,9 +924,6 @@ public: if (player->IsInFlight() || player->IsInCombat()) { -#define SPELL_UNSTUCK_ID 7355 -#define SPELL_UNSTUCK_VISUAL 2683 - SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(SPELL_UNSTUCK_ID); if (!spellInfo) return false; -- cgit v1.2.3