aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Commands/cs_battlenet_account.cpp4
-rw-r--r--src/server/scripts/EasternKingdoms/BlackrockMountain/BlackrockCaverns/blackrock_caverns.cpp2
-rw-r--r--src/server/scripts/Maelstrom/Stonecore/boss_high_priestess_azil.cpp12
3 files changed, 11 insertions, 7 deletions
diff --git a/src/server/scripts/Commands/cs_battlenet_account.cpp b/src/server/scripts/Commands/cs_battlenet_account.cpp
index 36e4d3fbf2c..79b57cb94ff 100644
--- a/src/server/scripts/Commands/cs_battlenet_account.cpp
+++ b/src/server/scripts/Commands/cs_battlenet_account.cpp
@@ -358,6 +358,8 @@ public:
handler->PSendSysMessage(LANG_ACCOUNT_ALREADY_LINKED, gameAccountName.c_str());
handler->SetSentErrorMessage(true);
break;
+ default:
+ break;
}
return true;
@@ -387,6 +389,8 @@ public:
handler->PSendSysMessage(LANG_ACCOUNT_BNET_NOT_LINKED, gameAccountName.c_str());
handler->SetSentErrorMessage(true);
break;
+ default:
+ break;
}
return true;
diff --git a/src/server/scripts/EasternKingdoms/BlackrockMountain/BlackrockCaverns/blackrock_caverns.cpp b/src/server/scripts/EasternKingdoms/BlackrockMountain/BlackrockCaverns/blackrock_caverns.cpp
index 4b40660fafc..f736aa6ffbc 100644
--- a/src/server/scripts/EasternKingdoms/BlackrockMountain/BlackrockCaverns/blackrock_caverns.cpp
+++ b/src/server/scripts/EasternKingdoms/BlackrockMountain/BlackrockCaverns/blackrock_caverns.cpp
@@ -108,7 +108,7 @@ public: npc_twilight_flame_caller() : CreatureScript("npc_twilight_flame_caller"
struct npc_twilight_flame_callerAI : public ScriptedAI
{
- npc_twilight_flame_callerAI(Creature* creature) : ScriptedAI(creature), _summons(me), _instance(creature->GetInstanceScript())
+ npc_twilight_flame_callerAI(Creature* creature) : ScriptedAI(creature), _instance(creature->GetInstanceScript()), _summons(me)
{
Initialize();
}
diff --git a/src/server/scripts/Maelstrom/Stonecore/boss_high_priestess_azil.cpp b/src/server/scripts/Maelstrom/Stonecore/boss_high_priestess_azil.cpp
index 477d3baf206..0535ac64a9f 100644
--- a/src/server/scripts/Maelstrom/Stonecore/boss_high_priestess_azil.cpp
+++ b/src/server/scripts/Maelstrom/Stonecore/boss_high_priestess_azil.cpp
@@ -123,7 +123,7 @@ Position const AbovePlatformPos = { 1336.21f, 960.813f, 215.0f };
// TO-DO:
// - Find out why NPCs summoned by boss are usually two times bigger than their normal size.
-// - Find more sniffs and script Force Grip spell (79351)
+// - Find more sniffs and script Force Grip spell (79351)
class boss_high_priestess_azil : public CreatureScript
{
@@ -164,9 +164,9 @@ class boss_high_priestess_azil : public CreatureScript
Talk(SAY_AGGRO);
}
- void JustDied(Unit* killer) override
+ void JustDied(Unit* /*killer*/) override
{
- me->Say(SAY_DEATH);
+ Talk(SAY_DEATH);
}
/*
@@ -327,7 +327,7 @@ class boss_high_priestess_azil : public CreatureScript
}
};
-// 42428 - Devout Follower
+// 42428 - Devout Follower
class npc_devout_follower : public CreatureScript
{
public:
@@ -515,7 +515,7 @@ public:
{
Unit* caster = GetCaster();
for (uint8 i = 0; i < 3; i++)
- GetCaster()->CastSpell(GetCaster(), SPELL_SUMMON_ADD_SOUTH, true);
+ caster->CastSpell(caster, SPELL_SUMMON_ADD_SOUTH, true);
}
void Register() override
@@ -551,7 +551,7 @@ public:
{
Unit* caster = GetCaster();
for (uint8 i = 0; i < 10; i++)
- GetCaster()->CastSpell(GetCaster(), SPELL_SUMMON_ADD_WEST, true);
+ caster->CastSpell(caster, SPELL_SUMMON_ADD_WEST, true);
}
void Register() override