Fixed all unused-parameters warnings

issue #121

used clang-tidy to achieve this
This commit is contained in:
Yehonal
2017-09-18 14:23:26 +02:00
parent aa87ec685b
commit 2b2e299ccc
229 changed files with 643 additions and 643 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ void PossessedAI::JustDied(Unit* /*u*/)
me->RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
}
void PossessedAI::KilledUnit(Unit* victim)
void PossessedAI::KilledUnit(Unit* /*victim*/)
{
// We killed a creature, disable victim's loot
//if (victim->GetTypeId() == TYPEID_UNIT)
+1 -1
View File
@@ -1054,7 +1054,7 @@ void SmartAI::sOnGameEvent(bool start, uint16 eventId)
GetScript()->ProcessEventsFor(start ? SMART_EVENT_GAME_EVENT_START : SMART_EVENT_GAME_EVENT_END, NULL, eventId);
}
void SmartAI::OnSpellClick(Unit* clicker, bool& result)
void SmartAI::OnSpellClick(Unit* clicker, bool& /*result*/)
{
// Xinef: i dont think this is necessery (can be made as event parameter)
//if (!result)
+1 -1
View File
@@ -506,7 +506,7 @@ void AuctionHouseObject::BuildListOwnerItems(WorldPacket& data, Player* player,
bool AuctionHouseObject::BuildListAuctionItems(WorldPacket& data, Player* player,
std::wstring const& wsearchedname, uint32 listfrom, uint8 levelmin, uint8 levelmax, uint8 usable,
uint32 inventoryType, uint32 itemClass, uint32 itemSubClass, uint32 quality,
uint32& count, uint32& totalcount, uint8 getAll)
uint32& count, uint32& totalcount, uint8 /*getAll*/)
{
uint32 itrcounter = 0;
+2 -2
View File
@@ -619,7 +619,7 @@ void BattlefieldWG::OnCreatureCreate(Creature* creature)
}
}
void BattlefieldWG::OnCreatureRemove(Creature* creature)
void BattlefieldWG::OnCreatureRemove(Creature* /*creature*/)
{
/* possibly can be used later
if (IsWarTime())
@@ -925,7 +925,7 @@ void BattlefieldWG::SendInitWorldStatesToAll()
SendInitWorldStatesTo(player);
}
void BattlefieldWG::BrokenWallOrTower(TeamId team)
void BattlefieldWG::BrokenWallOrTower(TeamId /*team*/)
{
// might be some use for this in the future. old code commented out below. KL
/* if (team == GetDefenderTeam())
+1 -1
View File
@@ -747,7 +747,7 @@ void BattlegroundMgr::BuildBattlegroundListPacket(WorldPacket* data, uint64 guid
}
}
void BattlegroundMgr::SendToBattleground(Player* player, uint32 instanceId, BattlegroundTypeId bgTypeId)
void BattlegroundMgr::SendToBattleground(Player* player, uint32 instanceId, BattlegroundTypeId /*bgTypeId*/)
{
if (Battleground* bg = GetBattleground(instanceId))
{
@@ -422,7 +422,7 @@ void BattlegroundEY::EventPlayerClickedOnFlag(Player* player, GameObject* gameOb
UpdateWorldState(NETHERSTORM_FLAG, 0);
}
void BattlegroundEY::EventTeamLostPoint(TeamId teamId, uint32 point)
void BattlegroundEY::EventTeamLostPoint(TeamId /*teamId*/, uint32 point)
{
TeamId oldTeamId = _capturePointInfo[point]._ownerTeamId;
if (oldTeamId == TEAM_ALLIANCE)
@@ -890,7 +890,7 @@ void BattlegroundIC::HandleCapturedNodes(ICNodePoint* nodePoint, bool recapture)
}
}
void BattlegroundIC::DestroyGate(Player* player, GameObject* go)
void BattlegroundIC::DestroyGate(Player* /*player*/, GameObject* go)
{
GateStatus[GetGateIDFromEntry(go->GetEntry())] = BG_IC_GATE_DESTROYED;
uint32 uws_open = GetWorldStateFromGateEntry(go->GetEntry(), true);
+1 -1
View File
@@ -2229,7 +2229,7 @@ uint8 LFGMgr::GetKicksLeft(uint64 guid)
return kicks;
}
void LFGMgr::RestoreState(uint64 guid, char const* debugMsg)
void LFGMgr::RestoreState(uint64 guid, char const* /*debugMsg*/)
{
if (IS_GROUP_GUID(guid))
{
+1 -1
View File
@@ -2631,7 +2631,7 @@ bool Creature::SetSwim(bool enable)
return true;
}
bool Creature::SetCanFly(bool enable, bool packetOnly /* = false */)
bool Creature::SetCanFly(bool enable, bool /*packetOnly*/ /* = false */)
{
if (!Unit::SetCanFly(enable))
return false;
+1 -1
View File
@@ -2152,7 +2152,7 @@ void WorldObject::SetZoneScript()
}
}
TempSummon* WorldObject::SummonCreature(uint32 entry, const Position &pos, TempSummonType spwtype, uint32 duration, uint32 vehId, SummonPropertiesEntry const *properties) const
TempSummon* WorldObject::SummonCreature(uint32 entry, const Position &pos, TempSummonType spwtype, uint32 duration, uint32 /*vehId*/, SummonPropertiesEntry const *properties) const
{
if (Map* map = FindMap())
{
+2 -2
View File
@@ -4619,7 +4619,7 @@ bool Player::HasSpell(uint32 spell) const
return (itr != m_spells.end() && itr->second->State != PLAYERSPELL_REMOVED && itr->second->IsInSpec(m_activeSpec));
}
bool Player::HasTalent(uint32 spell, uint8 spec) const
bool Player::HasTalent(uint32 spell, uint8 /*spec*/) const
{
PlayerTalentMap::const_iterator itr = m_talents.find(spell);
return (itr != m_talents.end() && itr->second->State != PLAYERSPELL_REMOVED && itr->second->IsInSpec(m_activeSpec));
@@ -22658,7 +22658,7 @@ bool Player::IsVisibleGloballyFor(Player const* u) const
}
template<class T>
inline void UpdateVisibilityOf_helper(T* target, std::vector<Unit*>& /*v*/)
inline void UpdateVisibilityOf_helper(T* /*target*/, std::vector<Unit*>& /*v*/)
{
}
+1 -1
View File
@@ -220,7 +220,7 @@ void MotionTransport::Update(uint32 diff)
sScriptMgr->OnTransportUpdate(this, diff);
}
void MotionTransport::DelayedUpdate(uint32 diff)
void MotionTransport::DelayedUpdate(uint32 /*diff*/)
{
if (GetKeyFrames().size() <= 1)
return;
+6 -6
View File
@@ -664,7 +664,7 @@ void Unit::DealDamageMods(Unit const* victim, uint32 &damage, uint32* absorb)
}
}
uint32 Unit::DealDamage(Unit* attacker, Unit* victim, uint32 damage, CleanDamage const* cleanDamage, DamageEffectType damagetype, SpellSchoolMask damageSchoolMask, SpellInfo const* spellProto, bool durabilityLoss, bool allowGM)
uint32 Unit::DealDamage(Unit* attacker, Unit* victim, uint32 damage, CleanDamage const* cleanDamage, DamageEffectType damagetype, SpellSchoolMask damageSchoolMask, SpellInfo const* spellProto, bool durabilityLoss, bool /*allowGM*/)
{
// Xinef: initialize damage done for rage calculations
// Xinef: its rare to modify damage in hooks, however training dummy's sets damage to 0
@@ -3727,7 +3727,7 @@ bool Unit::IsUnderWater() const
return m_last_isunderwater_status;
}
void Unit::UpdateUnderwaterState(Map* m, float x, float y, float z)
void Unit::UpdateUnderwaterState(Map* /*m*/, float /*x*/, float /*y*/, float /*z*/)
{
}
@@ -7898,7 +7898,7 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere
// Used in case when access to whole aura is needed
// All procs should be handled like this...
bool Unit::HandleAuraProc(Unit* victim, uint32 damage, Aura* triggeredByAura, SpellInfo const* procSpell, uint32 /*procFlag*/, uint32 procEx, uint32 cooldown, bool * handled)
bool Unit::HandleAuraProc(Unit* victim, uint32 damage, Aura* triggeredByAura, SpellInfo const* /*procSpell*/, uint32 /*procFlag*/, uint32 procEx, uint32 /*cooldown*/, bool * handled)
{
SpellInfo const* dummySpell = triggeredByAura->GetSpellInfo();
@@ -10043,7 +10043,7 @@ int32 Unit::DealHeal(Unit* healer, Unit* victim, uint32 addhealth)
return gain;
}
bool RedirectSpellEvent::Execute(uint64 e_time, uint32 p_time)
bool RedirectSpellEvent::Execute(uint64 /*e_time*/, uint32 /*p_time*/)
{
if (Unit* auraOwner = ObjectAccessor::GetUnit(_self, _auraOwnerGUID))
{
@@ -18212,7 +18212,7 @@ void Unit::ExitVehicle(Position const* /*exitPosition*/)
//! Coming Soon(TM)
}
bool VehicleDespawnEvent::Execute(uint64 e_time, uint32 p_time)
bool VehicleDespawnEvent::Execute(uint64 /*e_time*/, uint32 /*p_time*/)
{
Position pos = _self;
_self.MovePositionToFirstCollision(pos, 20.0f, M_PI);
@@ -18853,7 +18853,7 @@ int32 Unit::CalculateAOEDamageReduction(int32 damage, uint32 schoolMask, Unit* c
return damage;
}
bool ConflagrateAuraStateDelayEvent::Execute(uint64 e_time, uint32 p_time)
bool ConflagrateAuraStateDelayEvent::Execute(uint64 /*e_time*/, uint32 /*p_time*/)
{
if (Unit* owner = ObjectAccessor::FindUnit(m_owner))
if (owner && m_caster && owner->IsInWorld())
+1 -1
View File
@@ -7858,7 +7858,7 @@ bool ObjectMgr::LoadTrinityStrings(const char* table, int32 min_value, int32 max
return true;
}
const char *ObjectMgr::GetTrinityString(int32 entry, LocaleConstant locale_idx) const
const char *ObjectMgr::GetTrinityString(int32 entry, LocaleConstant /*locale_idx*/) const
{
if (TrinityStringLocale const* msl = GetTrinityStringLocale(entry))
return msl->Content[DEFAULT_LOCALE].c_str();
+1 -1
View File
@@ -1801,7 +1801,7 @@ void Group::UpdateLooterGuid(WorldObject* pLootedObject, bool ifneed)
}
}
GroupJoinBattlegroundResult Group::CanJoinBattlegroundQueue(Battleground const* bgTemplate, BattlegroundQueueTypeId bgQueueTypeId, uint32 MinPlayerCount, uint32 /*MaxPlayerCount*/, bool isRated, uint32 arenaSlot)
GroupJoinBattlegroundResult Group::CanJoinBattlegroundQueue(Battleground const* bgTemplate, BattlegroundQueueTypeId /*bgQueueTypeId*/, uint32 MinPlayerCount, uint32 /*MaxPlayerCount*/, bool isRated, uint32 arenaSlot)
{
// check if this group is LFG group
if (isLFGGroup())
+1 -1
View File
@@ -1328,7 +1328,7 @@ void WorldSession::HandlePlayerLoginToCharInWorld(Player* pCurrChar)
m_playerLoading = false;
}
void WorldSession::HandlePlayerLoginToCharOutOfWorld(Player* pCurrChar)
void WorldSession::HandlePlayerLoginToCharOutOfWorld(Player* /*pCurrChar*/)
{
ASSERT(false);
}
+1 -1
View File
@@ -120,7 +120,7 @@ void MailDraft::deleteIncludedItems(SQLTransaction& trans, bool inDB /*= false*/
m_items.clear();
}
void MailDraft::SendReturnToSender(uint32 sender_acc, uint32 sender_guid, uint32 receiver_guid, SQLTransaction& trans)
void MailDraft::SendReturnToSender(uint32 /*sender_acc*/, uint32 sender_guid, uint32 receiver_guid, SQLTransaction& trans)
{
Player* receiver = ObjectAccessor::FindPlayerInOrOutOfWorld(MAKE_NEW_GUID(receiver_guid, 0, HIGHGUID_PLAYER));
+3 -3
View File
@@ -501,13 +501,13 @@ void Map::InitializeObject(T* /*obj*/)
}
template<>
void Map::InitializeObject(Creature* obj)
void Map::InitializeObject(Creature* /*obj*/)
{
//obj->_moveState = MAP_OBJECT_CELL_MOVE_NONE; // pussywizard: this is shit
}
template<>
void Map::InitializeObject(GameObject* obj)
void Map::InitializeObject(GameObject* /*obj*/)
{
//obj->_moveState = MAP_OBJECT_CELL_MOVE_NONE; // pussywizard: this is shit
}
@@ -650,7 +650,7 @@ void Map::VisitNearbyCellsOf(WorldObject* obj, TypeContainerVisitor<Trinity::Obj
}
}
void Map::Update(const uint32 t_diff, const uint32 s_diff, bool thread)
void Map::Update(const uint32 t_diff, const uint32 s_diff, bool /*thread*/)
{
uint32 mapId = GetId(); // pussywizard: for crashlogs
sLog->outDebug(LOG_FILTER_POOLSYS, "%u", mapId); // pussywizard: for crashlogs
+1 -1
View File
@@ -13,7 +13,7 @@ std::list<AuctionListItemsDelayEvent> AsyncAuctionListingMgr::auctionListingList
ACE_Thread_Mutex AsyncAuctionListingMgr::auctionListingLock;
ACE_Thread_Mutex AsyncAuctionListingMgr::auctionListingTempLock;
bool AuctionListOwnerItemsDelayEvent::Execute(uint64 e_time, uint32 p_time)
bool AuctionListOwnerItemsDelayEvent::Execute(uint64 /*e_time*/, uint32 /*p_time*/)
{
if (Player* plr = ObjectAccessor::FindPlayer(playerguid))
plr->GetSession()->HandleAuctionListOwnerItemsEvent(data);
+1 -1
View File
@@ -12,7 +12,7 @@ class AuctionListOwnerItemsDelayEvent : public BasicEvent
virtual ~AuctionListOwnerItemsDelayEvent() {}
virtual bool Execute(uint64 e_time, uint32 p_time);
virtual void Abort(uint64 e_time) {}
virtual void Abort(uint64 /*e_time*/) {}
bool getOwner() { return owner; }
private:
@@ -32,7 +32,7 @@ void EscortMovementGenerator<T>::DoInitialize(T* unit)
}
template<class T>
bool EscortMovementGenerator<T>::DoUpdate(T* unit, uint32 diff)
bool EscortMovementGenerator<T>::DoUpdate(T* unit, uint32 /*diff*/)
{
if (!unit)
return false;
+2 -2
View File
@@ -2110,7 +2110,7 @@ void Spell::SearchAreaTargets(std::list<WorldObject*>& targets, float range, Pos
SearchTargets<Trinity::WorldObjectListSearcher<Trinity::WorldObjectSpellAreaTargetCheck> > (searcher, containerTypeMask, m_caster, position, range);
}
void Spell::SearchChainTargets(std::list<WorldObject*>& targets, uint32 chainTargets, WorldObject* target, SpellTargetObjectTypes objectType, SpellTargetCheckTypes selectType, SpellTargetSelectionCategories selectCategory, ConditionList* condList, bool isChainHeal)
void Spell::SearchChainTargets(std::list<WorldObject*>& targets, uint32 chainTargets, WorldObject* target, SpellTargetObjectTypes objectType, SpellTargetCheckTypes selectType, SpellTargetSelectionCategories /*selectCategory*/, ConditionList* condList, bool isChainHeal)
{
// max dist for jump target selection
float jumpRadius = 0.0f;
@@ -7574,7 +7574,7 @@ bool SpellEvent::IsDeletable() const
return m_Spell->IsDeletable();
}
bool ReflectEvent::Execute(uint64 e_time, uint32 p_time)
bool ReflectEvent::Execute(uint64 /*e_time*/, uint32 /*p_time*/)
{
Unit* caster = ObjectAccessor::FindUnit(_casterGUID);
Unit* target = ObjectAccessor::FindUnit(_targetGUID);
+3 -3
View File
@@ -1613,7 +1613,7 @@ void Spell::EffectHealMechanical(SpellEffIndex /*effIndex*/)
m_damage -= unitTarget->SpellHealingBonusTaken(m_originalCaster, m_spellInfo, heal, HEAL);
}
void Spell::EffectHealthLeech(SpellEffIndex effIndex)
void Spell::EffectHealthLeech(SpellEffIndex /*effIndex*/)
{
if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET)
return;
@@ -2722,7 +2722,7 @@ void Spell::EffectUntrainTalents(SpellEffIndex /*effIndex*/)
unitTarget->ToPlayer()->SendTalentWipeConfirm(guid);
}
void Spell::EffectTeleUnitsFaceCaster(SpellEffIndex effIndex)
void Spell::EffectTeleUnitsFaceCaster(SpellEffIndex /*effIndex*/)
{
if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET)
return;
@@ -6205,7 +6205,7 @@ void Spell::EffectBind(SpellEffIndex effIndex)
player->SendDirectMessage(&data);
}
void Spell::EffectSummonRaFFriend(SpellEffIndex effIndex)
void Spell::EffectSummonRaFFriend(SpellEffIndex /*effIndex*/)
{
if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET)
return;
+1 -1
View File
@@ -183,7 +183,7 @@ bool Weather::ReGenerate()
return m_type != old_type || m_grade != old_grade;
}
void Weather::SendWeatherUpdateToPlayer(Player* player)
void Weather::SendWeatherUpdateToPlayer(Player* /*player*/)
{
WorldPacket data(SMSG_WEATHER, (4 + 4 + 1));
data << uint32(GetWeatherState());
+1 -1
View File
@@ -63,7 +63,7 @@ public:
return true;
}
static bool HandleAchievementCheckAllCommand(ChatHandler* handler, char const* args)
static bool HandleAchievementCheckAllCommand(ChatHandler* handler, char const* /*args*/)
{
Player* target = handler->getSelectedPlayer();
if (!target)
+2 -2
View File
@@ -11,7 +11,7 @@
#include "Group.h"
#include "Player.h"
void GetPlayerInfo(ChatHandler* handler, Player* player)
void GetPlayerInfo(ChatHandler* /*handler*/, Player* player)
{
if (!player)
return;
@@ -103,7 +103,7 @@ public:
return true;
}
static bool HandleLfgQueueInfoCommand(ChatHandler* handler, char const* args)
static bool HandleLfgQueueInfoCommand(ChatHandler* /*handler*/, char const* /*args*/)
{
return true;
}
+1 -1
View File
@@ -1092,7 +1092,7 @@ public:
return true;
}
static bool HandleSaveCommand(ChatHandler* handler, char const* /*args*/)
static bool HandleSaveCommand(ChatHandler* /*handler*/, char const* /*args*/)
{
// pussywizard: fully disabled on 28.12.2011, but disabled it "silently"
return true;
+3 -3
View File
@@ -34,7 +34,7 @@ public:
return commandTable;
}
static bool HandleSpectatorCommand(ChatHandler* handler, char const* args)
static bool HandleSpectatorCommand(ChatHandler* handler, char const* /*args*/)
{
handler->PSendSysMessage("Incorrect syntax.");
handler->PSendSysMessage("Command has subcommands:");
@@ -50,7 +50,7 @@ public:
return true;
}
static bool HandleSpectatorResetCommand(ChatHandler* handler, char const* args)
static bool HandleSpectatorResetCommand(ChatHandler* handler, char const* /*args*/)
{
Player* p = handler->GetSession()->GetPlayer();
if (!p->IsSpectator())
@@ -59,7 +59,7 @@ public:
return true;
}
static bool HandleSpectatorLeaveCommand(ChatHandler* handler, char const* args)
static bool HandleSpectatorLeaveCommand(ChatHandler* handler, char const* /*args*/)
{
Player* player = handler->GetSession()->GetPlayer();
if (!player->IsSpectator() || !player->FindMap() || !player->FindMap()->IsBattleArena())
@@ -184,7 +184,7 @@ public:
}
}
bool CanAIAttack(const Unit* target) const { return me->IsVisible(); }
bool CanAIAttack(const Unit* /*target*/) const { return me->IsVisible(); }
void JustReachedHome()
{
@@ -434,7 +434,7 @@ public:
Talk(SAY_SLAY, victim);
}
void MovementInform(uint32 type, uint32 id)
void MovementInform(uint32 type, uint32 /*id*/)
{
if (type != POINT_MOTION_TYPE)
return;
@@ -51,7 +51,7 @@ class boss_curator : public CreatureScript
me->ApplySpellImmune(0, IMMUNITY_EFFECT, SPELL_EFFECT_POWER_BURN, true);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (events.GetNextEventTime(EVENT_KILL_TALK) == 0)
{
@@ -223,7 +223,7 @@ class boss_attumen : public CreatureScript
}
}
void SpellHit(Unit* caster, const SpellInfo* spellInfo)
void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo)
{
if (spellInfo->Mechanic == MECHANIC_DISARM && _events.GetNextEventTime(EVENT_KILL_TALK) == 0)
{
@@ -341,7 +341,7 @@ class boss_attumen_midnight : public CreatureScript
Talk(SAY_ATTUMEN2_DEATH);
}
void SpellHit(Unit* caster, const SpellInfo* spellInfo)
void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo)
{
if (spellInfo->Mechanic == MECHANIC_DISARM && _events.GetNextEventTime(EVENT_KILL_TALK) == 0)
{
@@ -59,7 +59,7 @@ class boss_servant_quarters : public CreatureScript
me->DespawnOrUnsummon(1);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
me->setActive(true);
if (me->GetEntry() == NPC_HYAKISS_THE_LURKER)
@@ -323,7 +323,7 @@ public:
amplitude = 5000;
}
void Update(AuraEffect const* effect)
void Update(AuraEffect const* /*effect*/)
{
PreventDefaultAction();
if (roll_chance_i(35))
@@ -116,7 +116,7 @@ public:
summons.Summon(summon);
}
void SummonedCreatureDies(Creature* summon, Unit*)
void SummonedCreatureDies(Creature* /*summon*/, Unit*)
{
if (me->IsAlive() && HelpersKilled < SAY_PLAYER_KILLED)
{
@@ -134,7 +134,7 @@ public:
++HelpersKilled;
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
Talk(SAY_AGGRO);
summons.DoZoneInCombat();
@@ -266,7 +266,7 @@ struct boss_priestess_lackey_commonAI : public ScriptedAI
uint32 actualEventId;
uint8 aiType;
float GetThreatMod(float dist, float armor, uint32 health, uint32 /*maxhealth*/, Unit* target)
float GetThreatMod(float dist, float /*armor*/, uint32 health, uint32 /*maxhealth*/, Unit* target)
{
float unimportant_dist = (aiType == AI_TYPE_MELEE ? 5.0f : 25.0f);
if (dist > unimportant_dist) dist -= unimportant_dist; else dist = 0.0f;
@@ -426,7 +426,7 @@ public:
events.ScheduleEvent(EVENT_SPELL_BACKSTAB, 4000);
}
void MovementInform(uint32 type, uint32 point)
void MovementInform(uint32 type, uint32 /*point*/)
{
if (type == CHASE_MOTION_TYPE && me->HasAura(SPELL_VANISH) && me->GetVictim())
me->CastSpell(me->GetVictim(), SPELL_KIDNEY_SHOT, false);
@@ -276,7 +276,7 @@ public:
return true;
}
bool OnGossipSelect(Player* plr, Creature* npc, uint32 Sender, uint32 uiAction)
bool OnGossipSelect(Player* plr, Creature* npc, uint32 /*Sender*/, uint32 uiAction)
{
plr->PlayerTalkClass->ClearMenus();
@@ -171,7 +171,7 @@ class spell_shadowfang_keep_forsaken_skills : public SpellScriptLoader
GetUnitOwner()->CastSpell(GetUnitOwner(), _forsakenSpell, true);
}
void HandleDummyTick(AuraEffect const* aurEff)
void HandleDummyTick(AuraEffect const* /*aurEff*/)
{
PreventDefaultAction();
GetUnitOwner()->RemoveAurasDueToSpell(_forsakenSpell);
@@ -398,7 +398,7 @@ public:
me->CastSpell(me, SPELL_DEMONIC_VAPOR_PERIODIC, true);
}
void UpdateAI(uint32 diff)
void UpdateAI(uint32 /*diff*/)
{
if (me->GetMotionMaster()->GetMotionSlotType(MOTION_SLOT_CONTROLLED) == NULL_MOTION_TYPE)
{
@@ -501,12 +501,12 @@ class spell_felmyst_fog_of_corruption_charm : public SpellScriptLoader
{
PrepareAuraScript(spell_felmyst_fog_of_corruption_charm_AuraScript);
void HandleApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
void HandleApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
GetTarget()->CastSpell(GetTarget(), SPELL_FOG_OF_CORRUPTION_CHARM2, true);
}
void HandleRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
GetTarget()->RemoveAurasDueToSpell(SPELL_FOG_OF_CORRUPTION_CHARM2);
Unit::Kill(GetCaster(), GetTarget(), false);
@@ -663,7 +663,7 @@ class spell_kalecgos_curse_of_boundless_agony : public SpellScriptLoader
{
PrepareAuraScript(spell_kalecgos_curse_of_boundless_agony_AuraScript);
void OnRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
if (InstanceScript* instance = GetUnitOwner()->GetInstanceScript())
if (instance->IsEncounterInProgress())
@@ -734,7 +734,7 @@ class spell_kalecgos_spectral_realm : public SpellScriptLoader
{
PrepareAuraScript(spell_kalecgos_spectral_realm_AuraScript);
void OnRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_SPECTRAL_EXHAUSTION, true);
GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_TELEPORT_NORMAL_REALM, true);
@@ -1122,7 +1122,7 @@ class spell_kiljaeden_flame_dart : public SpellScriptLoader
{
PrepareSpellScript(spell_kiljaeden_flame_dart_SpellScript);
void HandleSchoolDamage(SpellEffIndex effIndex)
void HandleSchoolDamage(SpellEffIndex /*effIndex*/)
{
if (Unit* target = GetHitUnit())
target->CastSpell(target, SPELL_FLAME_DART_EXPLOSION, true);
@@ -1149,7 +1149,7 @@ class spell_kiljaeden_darkness : public SpellScriptLoader
{
PrepareAuraScript(spell_kiljaeden_darkness_AuraScript);
void HandleRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
if (GetUnitOwner()->GetTypeId() == TYPEID_UNIT)
GetUnitOwner()->ToCreature()->AI()->DoAction(ACTION_NO_KILL_TALK);
@@ -1209,12 +1209,12 @@ class spell_kiljaeden_vengeance_of_the_blue_flight : public SpellScriptLoader
{
PrepareAuraScript(spell_kiljaeden_vengeance_of_the_blue_flight_AuraScript);
void HandleApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
void HandleApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_POSSESS_DRAKE_IMMUNITY, true);
}
void HandleRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
GetUnitOwner()->RemoveAurasDueToSpell(SPELL_POSSESS_DRAKE_IMMUNITY);
}
@@ -327,7 +327,7 @@ class spell_muru_summon_blood_elves_periodic : public SpellScriptLoader
GetAura()->GetEffect(aurEff->GetEffIndex())->SetPeriodicTimer(10000);
}
void OnPeriodic(AuraEffect const* aurEff)
void OnPeriodic(AuraEffect const* /*aurEff*/)
{
GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_SUMMON_FURY_MAGE1, true);
GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_SUMMON_FURY_MAGE2, true);
@@ -426,12 +426,12 @@ class spell_entropius_void_zone_visual : public SpellScriptLoader
{
PrepareAuraScript(spell_entropius_void_zone_visual_AuraScript);
void HandleApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
void HandleApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
SetDuration(3000);
}
void HandleRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_SUMMON_DARK_FIEND_ENTROPIUS, true);
}
@@ -139,7 +139,7 @@ class spell_uldaman_sub_boss_agro_keepers : public SpellScriptLoader
{
PrepareSpellScript(spell_uldaman_sub_boss_agro_keepers_SpellScript);
void HandleSendEvent(SpellEffIndex effIndex)
void HandleSendEvent(SpellEffIndex /*effIndex*/)
{
if (Creature* keeper = GetCaster()->FindNearestCreature(NPC_STONE_KEEPER, 100.0f, true))
keeper->AI()->SetData(1, 1);
@@ -207,7 +207,7 @@ class spell_uldaman_boss_agro_archaedas : public SpellScriptLoader
{
PrepareSpellScript(spell_uldaman_boss_agro_archaedas_SpellScript);
void HandleSendEvent(SpellEffIndex effIndex)
void HandleSendEvent(SpellEffIndex /*effIndex*/)
{
InstanceScript* instance = GetCaster()->GetInstanceScript();
if (!instance || instance->GetData(DATA_ARCHAEDAS) == IN_PROGRESS)
@@ -259,7 +259,7 @@ public:
me->CastSpell(me, SPELL_DEATHS_DOOR, true);
}
void MovementInform(uint32 type, uint32 pointId)
void MovementInform(uint32 type, uint32 /*pointId*/)
{
if (type != POINT_MOTION_TYPE)
return;
@@ -474,7 +474,7 @@ public:
{
PrepareSpellScript(spell_bh_cleanse_quel_delar_SpellScript);
void OnEffect(SpellEffIndex effIndex)
void OnEffect(SpellEffIndex /*effIndex*/)
{
if (Unit* caster = GetCaster())
if (Creature* c = caster->FindNearestCreature(NPC_ROMMATH, 50.0f, true))
+7 -7
View File
@@ -167,7 +167,7 @@ public:
events.ScheduleEvent(EVENT_DIREBREW_RESPAWN2, 10000);
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
summons.DespawnAll();
summons.DoAction(ACTION_RELEASE_LOOT);
@@ -299,7 +299,7 @@ public:
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
if (me->GetEntry() == NPC_URSULA_DIREBREW)
events.ScheduleEvent(EVENT_SISTERS_BARREL, 18000);
@@ -452,7 +452,7 @@ class npc_brewfest_keg_reciver : public CreatureScript
return new npc_brewfest_keg_reciverAI(creature);
}
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*uiSender*/, uint32 uiAction)
bool OnGossipSelect(Player* player, Creature* /*creature*/, uint32 /*uiSender*/, uint32 uiAction)
{
switch (uiAction)
{
@@ -549,7 +549,7 @@ class npc_brewfest_bark_trigger : public CreatureScript
}
}
std::string GetTextFor(uint32 entry, uint32 questId)
std::string GetTextFor(uint32 /*entry*/, uint32 questId)
{
std::string str = "";
switch (questId)
@@ -680,7 +680,7 @@ class npc_dark_iron_attack_generator : public CreatureScript
}
// DARK IRON ATTACK EVENT
void MoveInLineOfSight(Unit* who) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void EnterCombat(Unit*) {}
void SpellHit(Unit* caster, const SpellInfo* spellInfo)
@@ -1047,7 +1047,7 @@ class npc_dark_iron_guzzler : public CreatureScript
who->CastSpell(who, SPELL_REPORT_DEATH, true);
}
void SpellHit(Unit* caster, const SpellInfo* spellInfo)
void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo)
{
if (me->IsAlive() && spellInfo->Id == SPELL_PLAYER_MUG)
{
@@ -1093,7 +1093,7 @@ class npc_brewfest_super_brew_trigger : public CreatureScript
uint32 timer;
void EnterCombat(Unit*) {}
void MoveInLineOfSight(Unit* who)
void MoveInLineOfSight(Unit* /*who*/)
{
}
+11 -11
View File
@@ -333,7 +333,7 @@ class spell_hallows_end_base_fire : public SpellScriptLoader
}
}
void HandleEffectApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
Unit* target = GetTarget();
target->SetObjectScale(0.5f);
@@ -493,7 +493,7 @@ public:
return true;
}
bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest)
bool OnQuestAccept(Player* /*player*/, Creature* creature, Quest const* quest)
{
if ((quest->GetQuestId() == QUEST_LET_THE_FIRES_COME_A || quest->GetQuestId() == QUEST_LET_THE_FIRES_COME_H) && !creature->AI()->GetData(DATA_ALLOW_START))
creature->AI()->DoAction(ACTION_START_EVENT);
@@ -523,7 +523,7 @@ class npc_soh_fire_trigger : public CreatureScript
me->SetDisableGravity(true);
}
void SpellHit(Unit* caster, const SpellInfo* spellInfo)
void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo)
{
if (spellInfo->Id == SPELL_START_FIRE)
{
@@ -584,7 +584,7 @@ class npc_hallows_end_soh : public CreatureScript
std::list<uint64> unitList;
int32 pos;
void EnterCombat(Unit*) {}
void MoveInLineOfSight(Unit* who){}
void MoveInLineOfSight(Unit* /*who*/){}
void DoAction(int32 param)
{
@@ -739,7 +739,7 @@ class npc_hallows_end_soh : public CreatureScript
}
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
me->MonsterYell("So eager you are, for my blood to spill. Yet to vanquish me, 'tis my head you must kill!", LANG_UNIVERSAL, 0);
me->PlayDirectSound(11969);
@@ -904,7 +904,7 @@ class boss_headless_horseman : public CreatureScript
uint8 phase;
uint32 health;
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
summons.DespawnAll();
me->MonsterSay("This end have I reached before. What new adventure lies in store?", LANG_UNIVERSAL, 0);
@@ -920,7 +920,7 @@ class boss_headless_horseman : public CreatureScript
sLFGMgr->FinishDungeon(players.begin()->GetSource()->GetGroup()->GetGUID(), 285, me->FindMap());
}
void KilledUnit(Unit* who)
void KilledUnit(Unit* /*who*/)
{
me->MonsterYell("Your body lies beaten, battered and broken. Let my curse be your own, fate has spoken.", LANG_UNIVERSAL, 0);
me->PlayDirectSound(SOUND_SLAY);
@@ -940,7 +940,7 @@ class boss_headless_horseman : public CreatureScript
}
}
void SpellHit(Unit* caster, const SpellInfo* spellInfo)
void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo)
{
if (spellInfo->Id == SPELL_THROW_HEAD_BACK)
{
@@ -985,7 +985,7 @@ class boss_headless_horseman : public CreatureScript
Player* GetRhymePlayer() { return playerGUID ? ObjectAccessor::GetPlayer(*me, playerGUID) : NULL; }
void EnterCombat(Unit*) { me->SetInCombatWithZone(); }
void MoveInLineOfSight(Unit* who) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void DamageTaken(Unit*, uint32 &damage, DamageEffectType, SpellSchoolMask)
{
@@ -1174,7 +1174,7 @@ class boss_headless_horseman_head : public CreatureScript
uint32 timer;
bool handled;
void SpellHitTarget(Unit* target, const SpellInfo* spellInfo)
void SpellHitTarget(Unit* /*target*/, const SpellInfo* spellInfo)
{
if (spellInfo->Id == SPELL_THROW_HEAD_BACK)
{
@@ -1311,7 +1311,7 @@ class boss_headless_horseman_pumpkin : public CreatureScript
me->CastSpell(me, SPELL_PUMPKIN_VISUAL, true);
}
void SpellHit(Unit* caster, const SpellInfo* spellInfo)
void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo)
{
if (spellInfo->Id == SPELL_SPROUTING)
{
+2 -2
View File
@@ -21,7 +21,7 @@ class go_midsummer_bonfire : public GameObjectScript
public:
go_midsummer_bonfire() : GameObjectScript("go_midsummer_bonfire") { }
bool OnGossipSelect(Player* player, GameObject* go, uint32 /*sender*/, uint32 action)
bool OnGossipSelect(Player* player, GameObject* /*go*/, uint32 /*sender*/, uint32 /*action*/)
{
player->CLOSE_GOSSIP_MENU();
// we know that there is only one gossip.
@@ -274,7 +274,7 @@ public:
{
PrepareAuraScript(spell_midsummer_ribbon_pole_AuraScript)
void HandleEffectPeriodic(AuraEffect const * aurEff)
void HandleEffectPeriodic(AuraEffect const * /*aurEff*/)
{
PreventDefaultAction();
if (Unit *target = GetTarget())
+4 -4
View File
@@ -102,10 +102,10 @@ class npc_pilgrims_bounty_chair : public CreatureScript
me->SetReactState(REACT_PASSIVE);
}
void MoveInLineOfSight(Unit* who) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void AttackStart(Unit*) {}
void PassengerBoarded(Unit* who, int8 seatId, bool apply)
void PassengerBoarded(Unit* who, int8 /*seatId*/, bool apply)
{
if (apply && who->GetTypeId() == TYPEID_PLAYER)
who->ToPlayer()->SetClientControl(me, 0, true);
@@ -200,7 +200,7 @@ class npc_pilgrims_bounty_chair : public CreatureScript
charm->ToCreature()->AI()->DoAction(spellInfo->Id);
}
void SpellHit(Unit* target, const SpellInfo* spellInfo)
void SpellHit(Unit* /*target*/, const SpellInfo* spellInfo)
{
switch (spellInfo->Id)
{
@@ -284,7 +284,7 @@ class npc_pilgrims_bounty_plate : public CreatureScript
{
}
void SpellHit(Unit* caster, const SpellInfo* spellInfo)
void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo)
{
switch (spellInfo->Id)
{
@@ -131,7 +131,7 @@ public:
Talk(SAY_DEATH);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (!urand(0,1))
return;
@@ -84,7 +84,7 @@ public:
{
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (!urand(0,1))
return;
@@ -63,7 +63,7 @@ public:
Talk(SAY_DEATH);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (!urand(0,1))
return;
@@ -84,7 +84,7 @@ public:
Talk(SAY_DEATH);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (!urand(0,1))
return;
@@ -1409,7 +1409,7 @@ class npc_cos_chromie_start : public CreatureScript
return true;
}
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action)
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 /*action*/)
{
// final menu id, show crates if hidden and add item if missing
if (player->PlayerTalkClass->GetGossipMenu().GetMenuId() == 9595)
@@ -1457,7 +1457,7 @@ class npc_cos_chromie_middle : public CreatureScript
return true;
}
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action)
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 /*action*/)
{
if (!creature->GetInstanceScript() || creature->GetInstanceScript()->GetData(DATA_ARTHAS_EVENT) != COS_PROGRESS_CRATES_FOUND)
return true;
@@ -134,7 +134,7 @@ public:
events.ScheduleEvent(EVENT_SPELL_CONSECRATION, 1000);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
Talk(SAY_SLAY);
}
@@ -206,7 +206,7 @@ public:
return true;
}
bool OnGossipSelect(Player* player, Creature* creature, uint32 sender, uint32 action)
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 /*action*/)
{
GossipMenuItemData const* gossipMenuItemData = player->PlayerTalkClass->GetGossipMenu().GetItemData(0);
InstanceScript* instance = creature->GetInstanceScript();
@@ -853,7 +853,7 @@ public:
return GetInstanceAI<npc_tarethaAI>(creature);
}
bool OnGossipHello(Player* player, Creature* creature)
bool OnGossipHello(Player* /*player*/, Creature* /*creature*/)
{
return true;
}
@@ -867,7 +867,7 @@ public:
InstanceScript* instance;
void DoAction(int32 param)
void DoAction(int32 /*param*/)
{
me->SetStandState(UNIT_STAND_STATE_STAND);
me->RemoveAllAuras();
@@ -133,7 +133,7 @@ public:
}
}
void SetData(uint32 type, uint32 data)
void SetData(uint32 type, uint32 /*data*/)
{
switch (type)
{
@@ -193,7 +193,7 @@ public:
me->GetMap()->ToInstanceMap()->PermBindAllPlayers();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
Talk(SAY_AGGRO);
DoZoneInCombat();
@@ -208,13 +208,13 @@ public:
BindPlayers();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
if( m_pInstance )
m_pInstance->SetData(DATA_ONYXIA, DONE);
}
void DamageTaken(Unit*, uint32 &damage, DamageEffectType, SpellSchoolMask)
void DamageTaken(Unit*, uint32 & /*damage*/, DamageEffectType, SpellSchoolMask)
{
switch( Phase )
{
@@ -645,8 +645,8 @@ public:
{
npc_onyxia_triggerAI(Creature* pCreature) : ScriptedAI(pCreature) {}
void MoveInLineOfSight(Unit* who) {}
void UpdateAI(uint32 diff) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void UpdateAI(uint32 /*diff*/) {}
};
};
@@ -159,7 +159,7 @@ public:
OUT_LOAD_INST_DATA_COMPLETE;
}
bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0)
bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/)
{
switch(criteria_id)
{
@@ -133,7 +133,7 @@ class spell_zulfarrak_unlocking : public SpellScriptLoader
{
PrepareSpellScript(spell_zulfarrak_unlocking_SpellScript);
void HandleOpenLock(SpellEffIndex effIndex)
void HandleOpenLock(SpellEffIndex /*effIndex*/)
{
GameObject* cage = GetHitGObj();
std::list<WorldObject*> cagesList;
@@ -92,7 +92,7 @@ class boss_anub_arak : public CreatureScript
BossAI::JustDied(killer);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (events.GetNextEventTime(EVENT_KILL_TALK) == 0)
{
@@ -237,7 +237,7 @@ class spell_azjol_nerub_carrion_beetels : public SpellScriptLoader
{
PrepareAuraScript(spell_azjol_nerub_carrion_beetelsAuraScript)
void HandleEffectPeriodic(AuraEffect const* aurEff)
void HandleEffectPeriodic(AuraEffect const* /*aurEff*/)
{
// Xinef: 2 each second
GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_SUMMON_CARRION_BEETLES, true);
@@ -265,7 +265,7 @@ class spell_azjol_nerub_pound : public SpellScriptLoader
{
PrepareSpellScript(spell_azjol_nerub_pound_SpellScript);
void HandleApplyAura(SpellEffIndex effIndex)
void HandleApplyAura(SpellEffIndex /*effIndex*/)
{
if (Unit* unitTarget = GetHitUnit())
GetCaster()->CastSpell(unitTarget, SPELL_POUND_DAMAGE, true);
@@ -219,7 +219,7 @@ public:
me->CastSpell(me, SPELL_LIGHTNING_BOLTS, true);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
if (pInstance)
pInstance->SetData(DATA_JEDOGA_SHADOWSEEKER_EVENT, IN_PROGRESS);
@@ -290,7 +290,7 @@ public:
}
}
void MovementInform(uint32 type, uint32 id)
void MovementInform(uint32 /*type*/, uint32 id)
{
if (id == 0)
me->DisappearAndDie();
@@ -132,7 +132,7 @@ public:
return 0;
}
bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0)
bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/)
{
switch(criteria_id)
{
@@ -338,7 +338,7 @@ public:
me->CastSpell(me, SPELL_SARTHARION_TWILIGHT_REVENGE, true);
}
void EnterCombat(Unit* pWho)
void EnterCombat(Unit* /*pWho*/)
{
me->CastSpell(me, SPELL_SARTHARION_PYROBUFFET, true);
me->SetInCombatWithZone();
@@ -358,7 +358,7 @@ public:
me->CallForHelp(500.0f);
}
void JustDied(Unit* pKiller)
void JustDied(Unit* /*pKiller*/)
{
RespawnDragons(true);
summons.DespawnEntry(NPC_FLAME_TSUNAMI);
@@ -942,7 +942,7 @@ public:
Talk(SAY_SHADRON_SLAY);
}
void SummonedCreatureDies(Creature *summon, Unit*)
void SummonedCreatureDies(Creature * /*summon*/, Unit*)
{
if (isSartharion && pInstance)
{
@@ -1172,7 +1172,7 @@ public:
Talk(SAY_VESPERON_SLAY);
}
void SummonedCreatureDies(Creature *summon, Unit*)
void SummonedCreatureDies(Creature * /*summon*/, Unit*)
{
if (!isSartharion)
ClearInstance();
@@ -89,7 +89,7 @@ public:
return 0;
}
bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0)
bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* /*target*/, uint32 /*miscvalue1*/)
{
switch(criteria_id)
{
@@ -172,7 +172,7 @@ class boss_baltharus_the_warborn : public CreatureScript
xerestrasza->AI()->DoAction(ACTION_BALTHARUS_DEATH);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (events.GetNextEventTime(EVENT_KILL_TALK) == 0)
{
@@ -118,7 +118,7 @@ class boss_general_zarithrian : public CreatureScript
Talk(SAY_DEATH);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (events.GetNextEventTime(EVENT_KILL_TALK) == 0)
{
@@ -441,7 +441,7 @@ class boss_twilight_halion : public CreatureScript
me->SetReactState(REACT_DEFENSIVE);
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
_events.Reset();
_events.ScheduleEvent(EVENT_CLEAVE, urand(8000, 10000));
@@ -861,7 +861,7 @@ class spell_halion_meteor_strike_spread : public SpellScriptLoader
{
PrepareAuraScript(spell_halion_meteor_strike_spread_AuraScript);
void HandlePeriodic(AuraEffect const* aurEff)
void HandlePeriodic(AuraEffect const* /*aurEff*/)
{
PreventDefaultAction(); // xinef: 3/5 straight, 2/5 turn
if (!GetUnitOwner()->GetInstanceScript() || !GetUnitOwner()->GetInstanceScript()->IsEncounterInProgress())
@@ -977,7 +977,7 @@ class spell_halion_marks : public SpellScriptLoader
dispelledUnit->RemoveAurasDueToSpell(_removeSpellId, 0, 0, AURA_REMOVE_BY_EXPIRE);
}
void OnRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
if (GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_EXPIRE)
return;
@@ -1078,7 +1078,7 @@ class spell_halion_clear_debuffs : public SpellScriptLoader
{
PrepareSpellScript(spell_halion_clear_debuffs_SpellScript);
void HandleScriptEffect(SpellEffIndex effIndex)
void HandleScriptEffect(SpellEffIndex /*effIndex*/)
{
if (Unit* target = GetHitUnit())
{
@@ -1366,7 +1366,7 @@ class spell_halion_twilight_division : public SpellScriptLoader
{
PrepareSpellScript(spell_halion_twilight_division_SpellScript);
void HandleDummy(SpellEffIndex effIndex)
void HandleDummy(SpellEffIndex /*effIndex*/)
{
InstanceScript* instance = GetCaster()->GetInstanceScript();
Creature* controller = ObjectAccessor::GetCreature(*GetCaster(), instance->GetData64(NPC_HALION_CONTROLLER));
@@ -1412,7 +1412,7 @@ class spell_halion_twilight_mending : public SpellScriptLoader
{
PrepareSpellScript(spell_halion_twilight_mending_SpellScript);
void HandleHealPct(SpellEffIndex effIndex)
void HandleHealPct(SpellEffIndex /*effIndex*/)
{
if (Creature* target = GetHitCreature())
target->AI()->Talk(SAY_REGENERATE);
@@ -104,7 +104,7 @@ class boss_saviana_ragefire : public CreatureScript
me->SetHover(false);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (events.GetNextEventTime(EVENT_KILL_TALK) == 0)
{
@@ -113,7 +113,7 @@ public:
}
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.Reset();
events.ScheduleEvent(EVENT_SPELL_RADIANCE, 16000);
@@ -124,7 +124,7 @@ public:
pInstance->SetData(BOSS_ARGENT_CHALLENGE, IN_PROGRESS);
}
void SpellHit(Unit* caster, const SpellInfo* spell)
void SpellHit(Unit* /*caster*/, const SpellInfo* spell)
{
if (spell->Id == 66905 && me->GetHealth() == 1) // hammer throw back damage (15k)
me->CastSpell(me, 68197, true);
@@ -244,7 +244,7 @@ public:
}
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.Reset();
events.ScheduleEvent(EVENT_SPELL_HOLY_FIRE, urand(9000,12000));
@@ -807,7 +807,7 @@ class spell_reflective_shield : public SpellScriptLoader
{
PrepareAuraScript(spell_reflective_shield_AuraScript)
void HandleAfterEffectAbsorb(AuraEffect * aurEff, DamageInfo & dmgInfo, uint32 & absorbAmount)
void HandleAfterEffectAbsorb(AuraEffect * /*aurEff*/, DamageInfo & dmgInfo, uint32 & absorbAmount)
{
if( Unit* attacker = dmgInfo.GetAttacker() )
if( GetOwner() && attacker->GetGUID() != GetOwner()->GetGUID() )
@@ -176,7 +176,7 @@ public:
}
}
void SpellHitTarget(Unit* target, const SpellInfo* spell)
void SpellHitTarget(Unit* /*target*/, const SpellInfo* spell)
{
switch( spell->Id )
{
@@ -392,7 +392,7 @@ public:
events.Reset();
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.Reset();
if (me->GetEntry() == NPC_RISEN_JAEREN || me->GetEntry() == NPC_RISEN_ARELAS)
@@ -400,7 +400,7 @@ public:
events.RescheduleEvent(2, urand(3000,4000)); // claw
}
void SpellHit(Unit* caster, const SpellInfo* spell)
void SpellHit(Unit* /*caster*/, const SpellInfo* spell)
{
if (spell->Id == SPELL_BK_GHOUL_EXPLODE)
{
@@ -169,7 +169,7 @@ public:
}
// just in case, should be done in spell_gen_defend
void PassengerBoarded(Unit* who, int8 seat, bool apply)
void PassengerBoarded(Unit* who, int8 /*seat*/, bool apply)
{
if (me->IsDuringRemoveFromWorld())
return;
@@ -184,7 +184,7 @@ public:
}
//void EnterEvadeMode() { CreatureAI::EnterEvadeMode(); }
void MoveInLineOfSight(Unit* who) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void UpdateAI(uint32 diff)
{
if (m_ConditionsTimer <= diff)
@@ -198,8 +198,8 @@ public:
else
m_ConditionsTimer -= diff;
}
void AttackStart(Unit* who) {}
void EnterCombat(Unit* who) {}
void AttackStart(Unit* /*who*/) {}
void EnterCombat(Unit* /*who*/) {}
};
};
@@ -629,7 +629,7 @@ public:
}
}
void SpellHit(Unit* caster, const SpellInfo* spell)
void SpellHit(Unit* /*caster*/, const SpellInfo* spell)
{
switch( spell->Id )
{
@@ -1225,7 +1225,7 @@ public:
}
}
bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0)
bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/)
{
switch(criteria_id)
{
@@ -105,7 +105,7 @@ public:
damage = me->GetHealth()-1;
}
void MovementInform(uint32 type, uint32 id)
void MovementInform(uint32 type, uint32 /*id*/)
{
if (type != EFFECT_MOTION_TYPE)
return;
@@ -118,7 +118,7 @@ public:
Unit::Kill(me, me); // for bk scene, die after knockback
}
void UpdateAI(uint32 diff) {}
void UpdateAI(uint32 /*diff*/) {}
};
};
@@ -509,7 +509,7 @@ public:
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
me->CastSpell(me, RAID_MODE(SPELL_TRAITOR_KING_10, SPELL_TRAITOR_KING_25, SPELL_TRAITOR_KING_10, SPELL_TRAITOR_KING_25), true);
me->m_Events.AddEvent(new HideNpcEvent(*me), me->m_Events.CalculateTime(5000));
@@ -571,7 +571,7 @@ public:
}
}
void SpellHit(Unit* caster, const SpellInfo* spell)
void SpellHit(Unit* /*caster*/, const SpellInfo* spell)
{
if( spell->Id == SPELL_SPIKE_FAIL )
{
@@ -710,7 +710,7 @@ public:
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
me->m_Events.AddEvent(new HideNpcEvent(*me), me->m_Events.CalculateTime(5000));
}
@@ -840,7 +840,7 @@ class spell_pursuing_spikes : public SpellScriptLoader
{
PrepareAuraScript(spell_pursuing_spikesAuraScript)
void HandleEffectPeriodic(AuraEffect const * aurEff)
void HandleEffectPeriodic(AuraEffect const * /*aurEff*/)
{
if( Unit* target = GetTarget() )
{
@@ -57,7 +57,7 @@ struct boss_faction_championsAI : public ScriptedAI
UnitAI::AttackStartCaster(who, 18.5f);
}
float GetThreatMod(float dist, float armor, uint32 health, uint32 /*maxhealth*/, Unit* target)
float GetThreatMod(float dist, float /*armor*/, uint32 health, uint32 /*maxhealth*/, Unit* target)
{
/*float mod_health = ((float)health)/maxhealth;
if (mod_health < 0.4f) mod_health = 0.4f;
@@ -114,7 +114,7 @@ struct boss_faction_championsAI : public ScriptedAI
pInstance->SetData(TYPE_FACTION_CHAMPIONS, DONE);
}
void KilledUnit(Unit* who)
void KilledUnit(Unit* /*who*/)
{
if( pInstance )
pInstance->SetData(TYPE_FACTION_CHAMPIONS_PLAYER_DIED, 1);
@@ -373,7 +373,7 @@ public:
events.RescheduleEvent(EVENT_SPELL_MISTRESS_KISS, urand(10000,15000));
}
void SpellHit(Unit* caster, const SpellInfo* spell)
void SpellHit(Unit* /*caster*/, const SpellInfo* /*spell*/)
{
//if (caster && spell && spell->Id == 66287 /*control vehicle*/)
// caster->ClearUnitState(UNIT_STATE_ONVEHICLE);
@@ -434,7 +434,7 @@ public:
{
PrepareAuraScript(spell_toc25_mistress_kiss_AuraScript)
void HandleEffectPeriodic(AuraEffect const * aurEff)
void HandleEffectPeriodic(AuraEffect const * /*aurEff*/)
{
if (Unit* caster = GetCaster())
if (Unit* target = GetTarget())
@@ -90,7 +90,7 @@ public:
events.ScheduleEvent(EVENT_SPELL_FIRE_BOMB, urand(10000,30000));
}
void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
events.Reset();
events.ScheduleEvent(EVENT_SPELL_SNOBOLLED, 1500);
@@ -818,7 +818,7 @@ public:
return false;
}
void MovementInform(uint32 type, uint32 id)
void MovementInform(uint32 /*type*/, uint32 id)
{
if( id == EVENT_CHARGE )
{
@@ -521,7 +521,7 @@ public:
boss_twin_valkyrAI::JustSummoned(c);
}
void JustSummoned(Creature* s) {}
void JustSummoned(Creature* /*s*/) {}
};
};
@@ -547,7 +547,7 @@ public:
boss_twin_valkyrAI::JustSummoned(c);
}
void JustSummoned(Creature* s) {}
void JustSummoned(Creature* /*s*/) {}
};
};
@@ -704,7 +704,7 @@ public:
me->GetMotionMaster()->MovePoint(0, Locs[LOC_CENTER].GetPositionX()+cos(angle)*47.0f, Locs[LOC_CENTER].GetPositionY()+sin(angle)*47.0f, me->GetPositionZ());
}
void UpdateAI(uint32 diff)
void UpdateAI(uint32 /*diff*/)
{
if( despawning )
return;
@@ -869,7 +869,7 @@ class spell_valkyr_ball_periodic_dummy : public SpellScriptLoader
{
PrepareAuraScript(spell_valkyr_ball_periodic_dummyAuraScript)
void HandleEffectPeriodic(AuraEffect const * aurEff)
void HandleEffectPeriodic(AuraEffect const * /*aurEff*/)
{
if (Unit* target = GetTarget())
if (target->GetDisplayId() != 11686)
@@ -1638,7 +1638,7 @@ public:
OUT_LOAD_INST_DATA_COMPLETE;
}
bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0)
bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/)
{
switch(criteria_id)
{
@@ -87,7 +87,7 @@ class boss_novos : public CreatureScript
_achievement = false;
}
void MoveInLineOfSight(Unit* who) { }
void MoveInLineOfSight(Unit* /*who*/) { }
void EnterCombat(Unit* who)
{
@@ -118,7 +118,7 @@ class boss_novos : public CreatureScript
instance->SetBossState(DATA_NOVOS_CRYSTALS, DONE);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (events.GetNextEventTime(EVENT_KILL_TALK) == 0)
{
@@ -255,7 +255,7 @@ class spell_novos_crystal_handler_death : public SpellScriptLoader
{
PrepareAuraScript(spell_novos_crystal_handler_death_AuraScript)
void HandleEffectApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
GetUnitOwner()->InterruptNonMeleeSpells(false);
if (GameObject* crystal = GetUnitOwner()->FindNearestGameObjectOfType(GAMEOBJECT_TYPE_DOOR, 5.0f))
@@ -87,7 +87,7 @@ class boss_tharon_ja : public CreatureScript
events.ScheduleEvent(EVENT_SPELL_TURN_FLESH, 1000);
}
void KilledUnit(Unit *victim)
void KilledUnit(Unit * /*victim*/)
{
if (events.GetNextEventTime(EVENT_KILL_TALK) == 0)
{
@@ -233,7 +233,7 @@ class spell_tharon_ja_dummy : public SpellScriptLoader
{
PrepareAuraScript(spell_tharon_ja_dummy_AuraScript)
void HandleEffectApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
PreventDefaultAction();
GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_FLESH_VISUAL, true);
@@ -241,7 +241,7 @@ class spell_tharon_ja_dummy : public SpellScriptLoader
GetUnitOwner()->SetDisplayId(GetUnitOwner()->GetNativeDisplayId()+1);
}
void HandleEffectRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
PreventDefaultAction();
GetUnitOwner()->getThreatManager().resetAllAggro();
@@ -82,7 +82,7 @@ class boss_trollgore : public CreatureScript
BossAI::JustDied(killer);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (events.GetNextEventTime(EVENT_KILL_TALK) == 0)
{
@@ -103,7 +103,7 @@ class spell_dtk_raise_dead : public SpellScriptLoader
return GetUnitOwner()->GetTypeId() == TYPEID_UNIT;
}
void HandleEffectRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
GetUnitOwner()->ToCreature()->DespawnOrUnsummon(1);
GetUnitOwner()->SummonCreature(NPC_RISEN_DRAKKARI_WARRIOR, *GetUnitOwner());
@@ -105,7 +105,7 @@ public:
}
}
void SpellHitTarget(Unit* target, const SpellInfo* spell)
void SpellHitTarget(Unit* /*target*/, const SpellInfo* spell)
{
if (spell->Id == SPELL_TELEPORT)
{
@@ -160,7 +160,7 @@ public:
return 0;
}
bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0)
bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/)
{
switch(criteria_id)
{
@@ -164,7 +164,7 @@ public:
{
PrepareAuraScript(spell_hor_shared_sufferingAuraScript);
void OnRemove(AuraEffect const* aurEff, AuraEffectHandleModes mode)
void OnRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
{
if (GetTargetApplication()->GetRemoveMode() == AURA_REMOVE_BY_ENEMY_SPELL) // dispelled
if (Unit* caster = GetCaster())
@@ -1395,7 +1395,7 @@ public:
}
}
void MovementInform(uint32 type, uint32 id)
void MovementInform(uint32 type, uint32 /*id*/)
{
// Xinef: dont use 0, it is no longer the last point
// Xinef: if type is escort and spline is finalized, it means that we reached last point from the path
@@ -1598,7 +1598,7 @@ class npc_hor_leader_second : public CreatureScript
public:
npc_hor_leader_second() : CreatureScript("npc_hor_leader_second") { }
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*uiSender*/, uint32 uiAction)
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*uiSender*/, uint32 /*uiAction*/)
{
if (!creature->HasFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP))
return true;
@@ -1675,7 +1675,7 @@ public:
me->GetMotionMaster()->MoveSplinePath(&path);
}
void MovementInform(uint32 type, uint32 id)
void MovementInform(uint32 type, uint32 /*id*/)
{
if (type == ESCORT_MOTION_TYPE && me->movespline->Finalized())
events.ScheduleEvent(EVENT_SAY_LEADER_STOP_TEXT, 1000);
@@ -1792,7 +1792,7 @@ public:
leaped = false;
}
void UpdateAI(uint32 diff)
void UpdateAI(uint32 /*diff*/)
{
if (!UpdateVictim())
return;
@@ -1969,7 +1969,7 @@ public:
{
PrepareAuraScript(spell_hor_gunship_cannon_fireAuraScript)
void HandleEffectPeriodic(AuraEffect const * aurEff)
void HandleEffectPeriodic(AuraEffect const * /*aurEff*/)
{
PreventDefaultAction();
if (Unit* caster = GetCaster())
@@ -90,7 +90,7 @@ public:
pInstance->SetData(DATA_GARFROST, NOT_STARTED);
}
void SetData(uint32 id, uint32 data)
void SetData(uint32 id, uint32 /*data*/)
{
if (id == 1 && pInstance)
pInstance->SetData(DATA_ACHIEV_ELEVEN, 0);
@@ -156,7 +156,7 @@ public:
}
}
void SpellHitTarget(Unit* target, const SpellInfo* spell)
void SpellHitTarget(Unit* /*target*/, const SpellInfo* spell)
{
if (spell->Id == uint32(SPELL_SARONITE_TRIGGERED))
{
@@ -80,7 +80,7 @@ public:
pInstance->SetData(DATA_ICK, NOT_STARTED);
}
bool CanAIAttack(const Unit* who) const
bool CanAIAttack(const Unit* /*who*/) const
{
return pInstance && pInstance->GetData(DATA_INSTANCE_PROGRESS) >= INSTANCE_PROGRESS_FINISHED_INTRO;
}
@@ -260,7 +260,7 @@ public:
k->AI()->Talk(RAND(SAY_SLAY_1, SAY_SLAY_2));
}
void JustSummoned(Creature* summon)
void JustSummoned(Creature* /*summon*/)
{
}
};
@@ -74,7 +74,7 @@ public:
return false;
}
void OnPlayerEnter(Player* plr)
void OnPlayerEnter(Player* /*plr*/)
{
instance->LoadGrid(LeaderIntroPos.GetPositionX(), LeaderIntroPos.GetPositionY());
if (Creature* c = instance->GetCreature(GetData64(DATA_LEADER_FIRST_GUID)))
@@ -372,7 +372,7 @@ public:
return 0;
}
bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0)
bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/)
{
switch(criteria_id)
{
@@ -46,7 +46,7 @@ public:
}
}
void SetData(uint32 type, uint32 val)
void SetData(uint32 type, uint32 /*val*/)
{
if (type == DATA_START_INTRO && pInstance->GetData(DATA_INSTANCE_PROGRESS) == INSTANCE_PROGRESS_NONE && counter == 0 && !me->IsVisible())
{
@@ -358,8 +358,8 @@ public:
summons.Despawn(s);
}
void AttackStart(Unit* who) {}
void MoveInLineOfSight(Unit* who) {}
void AttackStart(Unit* /*who*/) {}
void MoveInLineOfSight(Unit* /*who*/) {}
};
CreatureAI *GetAI(Creature* creature) const
@@ -467,7 +467,7 @@ public:
DoMeleeAttackIfReady();
}
void MoveInLineOfSight(Unit* who) {}
void MoveInLineOfSight(Unit* /*who*/) {}
};
CreatureAI *GetAI(Creature* creature) const
@@ -1335,7 +1335,7 @@ public:
{
PrepareAuraScript(spell_pos_empowered_blizzardAuraScript)
void HandleEffectPeriodic(AuraEffect const * aurEff)
void HandleEffectPeriodic(AuraEffect const * /*aurEff*/)
{
PreventDefaultAction();
if (Unit* caster = GetCaster())
@@ -91,7 +91,7 @@ class boss_drakkari_colossus : public CreatureScript
{
}
void MoveInLineOfSight(Unit* who)
void MoveInLineOfSight(Unit* /*who*/)
{
}
@@ -172,7 +172,7 @@ class boss_drakkari_colossus : public CreatureScript
}
}
void DamageTaken(Unit* attacker, uint32& damage, DamageEffectType, SpellSchoolMask)
void DamageTaken(Unit* /*attacker*/, uint32& damage, DamageEffectType, SpellSchoolMask)
{
if (damage >= me->GetHealth())
damage = 0;
@@ -120,7 +120,7 @@ class boss_gal_darah : public CreatureScript
summon->DespawnOrUnsummon(despawnTime);
}
uint32 GetData(uint32 type) const
uint32 GetData(uint32 /*type*/) const
{
return impaledList.size();
}
@@ -80,7 +80,7 @@ class boss_moorabi : public CreatureScript
events.ScheduleEvent(EVENT_TRANSFORMATION, 12000);
}
void SpellHitTarget(Unit* caster, const SpellInfo* spellInfo)
void SpellHitTarget(Unit* /*caster*/, const SpellInfo* spellInfo)
{
if (spellInfo->Id == SPELL_TRANSFORMATION)
{
@@ -164,7 +164,7 @@ class spell_moorabi_mojo_frenzy : public SpellScriptLoader
{
PrepareAuraScript(spell_moorabi_mojo_frenzy_AuraScript);
void HandlePeriodic(AuraEffect const* aurEff)
void HandlePeriodic(AuraEffect const* /*aurEff*/)
{
PreventDefaultAction();
@@ -194,7 +194,7 @@ class spell_sladran_grip_of_sladran : public SpellScriptLoader
{
PrepareAuraScript(spell_sladran_grip_of_sladran_AuraScript);
void HandlePeriodic(AuraEffect const* aurEff)
void HandlePeriodic(AuraEffect const* /*aurEff*/)
{
PreventDefaultAction();
if (GetStackAmount() >= 5)
@@ -326,7 +326,7 @@ class boss_prince_keleseth_icc : public CreatureScript
}
}
void DamageDealt(Unit* target, uint32& damage, DamageEffectType damageType)
void DamageDealt(Unit* target, uint32& damage, DamageEffectType /*damageType*/)
{
if (target->GetTypeId() != TYPEID_PLAYER)
return;
@@ -593,7 +593,7 @@ class boss_prince_taldaram_icc : public CreatureScript
}
}
void DamageDealt(Unit* target, uint32& damage, DamageEffectType damageType)
void DamageDealt(Unit* target, uint32& damage, DamageEffectType /*damageType*/)
{
if (target->GetTypeId() != TYPEID_PLAYER)
return;
@@ -884,7 +884,7 @@ class boss_prince_valanar_icc : public CreatureScript
}
}
void DamageDealt(Unit* target, uint32& damage, DamageEffectType damageType)
void DamageDealt(Unit* target, uint32& damage, DamageEffectType /*damageType*/)
{
if (target->GetTypeId() != TYPEID_PLAYER)
return;
@@ -1235,7 +1235,7 @@ class npc_ball_of_flame : public CreatureScript
void MoveInLineOfSight(Unit* /*who*/) {}
void MovementInform(uint32 type, uint32 id)
void MovementInform(uint32 type, uint32 /*id*/)
{
if (type == CHASE_MOTION_TYPE && !_exploded)
{
@@ -1283,7 +1283,7 @@ class npc_ball_of_flame : public CreatureScript
me->DespawnOrUnsummon(1);
}
void DamageDealt(Unit* target, uint32& damage, DamageEffectType damageType)
void DamageDealt(Unit* target, uint32& damage, DamageEffectType /*damageType*/)
{
if (target->GetTypeId() != TYPEID_PLAYER)
return;
@@ -186,7 +186,7 @@ class boss_blood_queen_lana_thel : public CreatureScript
_creditBloodQuickening = instance->GetData(DATA_BLOOD_QUICKENING_STATE) == IN_PROGRESS;
}
void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
_JustDied();
Talk(SAY_DEATH);
@@ -565,7 +565,7 @@ class boss_blood_queen_lana_thel : public CreatureScript
BossAI::EnterEvadeMode();
}
bool CanAIAttack(const Unit* target) const
bool CanAIAttack(const Unit* /*target*/) const
{
return me->IsVisible();
}
@@ -303,7 +303,7 @@ class boss_deathbringer_saurfang : public CreatureScript
creature->AI()->DoAction(ACTION_START_OUTRO);
}
bool CanAIAttack(const Unit* target) const
bool CanAIAttack(const Unit* /*target*/) const
{
return _introDone;
}
@@ -367,7 +367,7 @@ class boss_deathbringer_saurfang : public CreatureScript
instance->HandleGameObject(instance->GetData64(GO_SAURFANG_S_DOOR), false);
}
void SpellHitTarget(Unit* target, SpellInfo const* spell)
void SpellHitTarget(Unit* /*target*/, SpellInfo const* spell)
{
switch (spell->Id)
{
@@ -1051,7 +1051,7 @@ class spell_deathbringer_blood_link_aura : public SpellScriptLoader
return eventInfo.GetActor() && eventInfo.GetActionTarget() && (eventInfo.GetDamageInfo()->GetDamage() || eventInfo.GetHitMask() & PROC_EX_ABSORB) && procSpell && procSpell->SpellIconID != 2731; // Xinef: Mark of the Fallen Champion
}
void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo)
void HandleProc(AuraEffect const* /*aurEff*/, ProcEventInfo& eventInfo)
{
PreventDefaultAction();
Unit* victim = eventInfo.GetActionTarget();
@@ -1102,7 +1102,7 @@ class spell_deathbringer_blood_link_blood_beast_aura : public SpellScriptLoader
return eventInfo.GetActor() && eventInfo.GetActionTarget() && (eventInfo.GetDamageInfo()->GetDamage() || eventInfo.GetHitMask() & PROC_EX_ABSORB) && (!procSpell || procSpell->SpellIconID != 2731); // Xinef: Mark of the Fallen Champion
}
void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo)
void HandleProc(AuraEffect const* /*aurEff*/, ProcEventInfo& eventInfo)
{
PreventDefaultAction();
@@ -1639,7 +1639,7 @@ class npc_gunship_boarding_leader : public CreatureScript
{
}
void EnterCombat(Unit* target)
void EnterCombat(Unit* /*target*/)
{
_events.Reset();
_events.ScheduleEvent(EVENT_BLADESTORM, urand(13000, 18000));
@@ -1787,7 +1787,7 @@ class npc_gunship_mage : public CreatureScript
gunship_npc_AI::UpdateAI(diff);
}
bool CanAIAttack(const Unit* target) const
bool CanAIAttack(const Unit* /*target*/) const
{
return Instance->GetBossState(DATA_ICECROWN_GUNSHIP_BATTLE) == IN_PROGRESS;
}
@@ -1916,7 +1916,7 @@ class npc_gunship_rocketeer : public CreatureScript
me->_AddCreatureSpellCooldown(spellId, 9000);
}
bool CanAIAttack(const Unit* target) const
bool CanAIAttack(const Unit* /*target*/) const
{
return Instance->GetBossState(DATA_ICECROWN_GUNSHIP_BATTLE) == IN_PROGRESS;
}
@@ -704,7 +704,7 @@ public:
}
}
void EnterCombat(Unit* who) { DoZoneInCombat(); }
void EnterCombat(Unit* /*who*/) { DoZoneInCombat(); }
void UpdateAI(uint32 diff)
{
@@ -800,7 +800,7 @@ public:
}
}
void EnterCombat(Unit* who) { DoZoneInCombat(); }
void EnterCombat(Unit* /*who*/) { DoZoneInCombat(); }
void UpdateAI(uint32 diff)
{
@@ -938,7 +938,7 @@ public:
DoMeleeAttackIfReady();
}
void MoveInLineOfSight(Unit* who) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void EnterEvadeMode() {}
};

Some files were not shown because too many files have changed in this diff Show More