aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-06-05 17:57:19 +0200
committerShauren <shauren.trinity@gmail.com>2016-06-05 17:57:19 +0200
commit737469cfaaaf45fe700ae8a9673015b88afd0b00 (patch)
tree0954ecdef5e57f95436a491df7e371e77c2875a3 /src/server/scripts
parent6b1c85a6762e6343e5b1787db73e0b200c5af70d (diff)
Core/PacketIO: Update movement packets
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Commands/cs_misc.cpp8
1 files changed, 4 insertions, 4 deletions
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;