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); 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 // We killed a creature, disable victim's loot
//if (victim->GetTypeId() == TYPEID_UNIT) //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); 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) // Xinef: i dont think this is necessery (can be made as event parameter)
//if (!result) //if (!result)
+1 -1
View File
@@ -506,7 +506,7 @@ void AuctionHouseObject::BuildListOwnerItems(WorldPacket& data, Player* player,
bool AuctionHouseObject::BuildListAuctionItems(WorldPacket& data, Player* player, bool AuctionHouseObject::BuildListAuctionItems(WorldPacket& data, Player* player,
std::wstring const& wsearchedname, uint32 listfrom, uint8 levelmin, uint8 levelmax, uint8 usable, std::wstring const& wsearchedname, uint32 listfrom, uint8 levelmin, uint8 levelmax, uint8 usable,
uint32 inventoryType, uint32 itemClass, uint32 itemSubClass, uint32 quality, uint32 inventoryType, uint32 itemClass, uint32 itemSubClass, uint32 quality,
uint32& count, uint32& totalcount, uint8 getAll) uint32& count, uint32& totalcount, uint8 /*getAll*/)
{ {
uint32 itrcounter = 0; 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 /* possibly can be used later
if (IsWarTime()) if (IsWarTime())
@@ -925,7 +925,7 @@ void BattlefieldWG::SendInitWorldStatesToAll()
SendInitWorldStatesTo(player); 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 // might be some use for this in the future. old code commented out below. KL
/* if (team == GetDefenderTeam()) /* 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)) if (Battleground* bg = GetBattleground(instanceId))
{ {
@@ -422,7 +422,7 @@ void BattlegroundEY::EventPlayerClickedOnFlag(Player* player, GameObject* gameOb
UpdateWorldState(NETHERSTORM_FLAG, 0); UpdateWorldState(NETHERSTORM_FLAG, 0);
} }
void BattlegroundEY::EventTeamLostPoint(TeamId teamId, uint32 point) void BattlegroundEY::EventTeamLostPoint(TeamId /*teamId*/, uint32 point)
{ {
TeamId oldTeamId = _capturePointInfo[point]._ownerTeamId; TeamId oldTeamId = _capturePointInfo[point]._ownerTeamId;
if (oldTeamId == TEAM_ALLIANCE) 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; GateStatus[GetGateIDFromEntry(go->GetEntry())] = BG_IC_GATE_DESTROYED;
uint32 uws_open = GetWorldStateFromGateEntry(go->GetEntry(), true); uint32 uws_open = GetWorldStateFromGateEntry(go->GetEntry(), true);
+1 -1
View File
@@ -2229,7 +2229,7 @@ uint8 LFGMgr::GetKicksLeft(uint64 guid)
return kicks; return kicks;
} }
void LFGMgr::RestoreState(uint64 guid, char const* debugMsg) void LFGMgr::RestoreState(uint64 guid, char const* /*debugMsg*/)
{ {
if (IS_GROUP_GUID(guid)) if (IS_GROUP_GUID(guid))
{ {
+1 -1
View File
@@ -2631,7 +2631,7 @@ bool Creature::SetSwim(bool enable)
return true; return true;
} }
bool Creature::SetCanFly(bool enable, bool packetOnly /* = false */) bool Creature::SetCanFly(bool enable, bool /*packetOnly*/ /* = false */)
{ {
if (!Unit::SetCanFly(enable)) if (!Unit::SetCanFly(enable))
return false; 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()) 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)); 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); PlayerTalentMap::const_iterator itr = m_talents.find(spell);
return (itr != m_talents.end() && itr->second->State != PLAYERSPELL_REMOVED && itr->second->IsInSpec(m_activeSpec)); 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> 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); sScriptMgr->OnTransportUpdate(this, diff);
} }
void MotionTransport::DelayedUpdate(uint32 diff) void MotionTransport::DelayedUpdate(uint32 /*diff*/)
{ {
if (GetKeyFrames().size() <= 1) if (GetKeyFrames().size() <= 1)
return; 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: initialize damage done for rage calculations
// Xinef: its rare to modify damage in hooks, however training dummy's sets damage to 0 // 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; 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 // Used in case when access to whole aura is needed
// All procs should be handled like this... // 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(); SpellInfo const* dummySpell = triggeredByAura->GetSpellInfo();
@@ -10043,7 +10043,7 @@ int32 Unit::DealHeal(Unit* healer, Unit* victim, uint32 addhealth)
return gain; 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)) if (Unit* auraOwner = ObjectAccessor::GetUnit(_self, _auraOwnerGUID))
{ {
@@ -18212,7 +18212,7 @@ void Unit::ExitVehicle(Position const* /*exitPosition*/)
//! Coming Soon(TM) //! Coming Soon(TM)
} }
bool VehicleDespawnEvent::Execute(uint64 e_time, uint32 p_time) bool VehicleDespawnEvent::Execute(uint64 /*e_time*/, uint32 /*p_time*/)
{ {
Position pos = _self; Position pos = _self;
_self.MovePositionToFirstCollision(pos, 20.0f, M_PI); _self.MovePositionToFirstCollision(pos, 20.0f, M_PI);
@@ -18853,7 +18853,7 @@ int32 Unit::CalculateAOEDamageReduction(int32 damage, uint32 schoolMask, Unit* c
return damage; 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 (Unit* owner = ObjectAccessor::FindUnit(m_owner))
if (owner && m_caster && owner->IsInWorld()) 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; 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)) if (TrinityStringLocale const* msl = GetTrinityStringLocale(entry))
return msl->Content[DEFAULT_LOCALE].c_str(); 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 // check if this group is LFG group
if (isLFGGroup()) if (isLFGGroup())
+1 -1
View File
@@ -1328,7 +1328,7 @@ void WorldSession::HandlePlayerLoginToCharInWorld(Player* pCurrChar)
m_playerLoading = false; m_playerLoading = false;
} }
void WorldSession::HandlePlayerLoginToCharOutOfWorld(Player* pCurrChar) void WorldSession::HandlePlayerLoginToCharOutOfWorld(Player* /*pCurrChar*/)
{ {
ASSERT(false); ASSERT(false);
} }
+1 -1
View File
@@ -120,7 +120,7 @@ void MailDraft::deleteIncludedItems(SQLTransaction& trans, bool inDB /*= false*/
m_items.clear(); 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)); 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<> template<>
void Map::InitializeObject(Creature* obj) void Map::InitializeObject(Creature* /*obj*/)
{ {
//obj->_moveState = MAP_OBJECT_CELL_MOVE_NONE; // pussywizard: this is shit //obj->_moveState = MAP_OBJECT_CELL_MOVE_NONE; // pussywizard: this is shit
} }
template<> template<>
void Map::InitializeObject(GameObject* obj) void Map::InitializeObject(GameObject* /*obj*/)
{ {
//obj->_moveState = MAP_OBJECT_CELL_MOVE_NONE; // pussywizard: this is shit //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 uint32 mapId = GetId(); // pussywizard: for crashlogs
sLog->outDebug(LOG_FILTER_POOLSYS, "%u", mapId); // 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::auctionListingLock;
ACE_Thread_Mutex AsyncAuctionListingMgr::auctionListingTempLock; 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)) if (Player* plr = ObjectAccessor::FindPlayer(playerguid))
plr->GetSession()->HandleAuctionListOwnerItemsEvent(data); plr->GetSession()->HandleAuctionListOwnerItemsEvent(data);
+1 -1
View File
@@ -12,7 +12,7 @@ class AuctionListOwnerItemsDelayEvent : public BasicEvent
virtual ~AuctionListOwnerItemsDelayEvent() {} virtual ~AuctionListOwnerItemsDelayEvent() {}
virtual bool Execute(uint64 e_time, uint32 p_time); 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; } bool getOwner() { return owner; }
private: private:
@@ -32,7 +32,7 @@ void EscortMovementGenerator<T>::DoInitialize(T* unit)
} }
template<class T> template<class T>
bool EscortMovementGenerator<T>::DoUpdate(T* unit, uint32 diff) bool EscortMovementGenerator<T>::DoUpdate(T* unit, uint32 /*diff*/)
{ {
if (!unit) if (!unit)
return false; 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); 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 // max dist for jump target selection
float jumpRadius = 0.0f; float jumpRadius = 0.0f;
@@ -7574,7 +7574,7 @@ bool SpellEvent::IsDeletable() const
return m_Spell->IsDeletable(); 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* caster = ObjectAccessor::FindUnit(_casterGUID);
Unit* target = ObjectAccessor::FindUnit(_targetGUID); 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); 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) if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET)
return; return;
@@ -2722,7 +2722,7 @@ void Spell::EffectUntrainTalents(SpellEffIndex /*effIndex*/)
unitTarget->ToPlayer()->SendTalentWipeConfirm(guid); unitTarget->ToPlayer()->SendTalentWipeConfirm(guid);
} }
void Spell::EffectTeleUnitsFaceCaster(SpellEffIndex effIndex) void Spell::EffectTeleUnitsFaceCaster(SpellEffIndex /*effIndex*/)
{ {
if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET) if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET)
return; return;
@@ -6205,7 +6205,7 @@ void Spell::EffectBind(SpellEffIndex effIndex)
player->SendDirectMessage(&data); player->SendDirectMessage(&data);
} }
void Spell::EffectSummonRaFFriend(SpellEffIndex effIndex) void Spell::EffectSummonRaFFriend(SpellEffIndex /*effIndex*/)
{ {
if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET) if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET)
return; return;
+1 -1
View File
@@ -183,7 +183,7 @@ bool Weather::ReGenerate()
return m_type != old_type || m_grade != old_grade; 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)); WorldPacket data(SMSG_WEATHER, (4 + 4 + 1));
data << uint32(GetWeatherState()); data << uint32(GetWeatherState());
+1 -1
View File
@@ -63,7 +63,7 @@ public:
return true; return true;
} }
static bool HandleAchievementCheckAllCommand(ChatHandler* handler, char const* args) static bool HandleAchievementCheckAllCommand(ChatHandler* handler, char const* /*args*/)
{ {
Player* target = handler->getSelectedPlayer(); Player* target = handler->getSelectedPlayer();
if (!target) if (!target)
+2 -2
View File
@@ -11,7 +11,7 @@
#include "Group.h" #include "Group.h"
#include "Player.h" #include "Player.h"
void GetPlayerInfo(ChatHandler* handler, Player* player) void GetPlayerInfo(ChatHandler* /*handler*/, Player* player)
{ {
if (!player) if (!player)
return; return;
@@ -103,7 +103,7 @@ public:
return true; return true;
} }
static bool HandleLfgQueueInfoCommand(ChatHandler* handler, char const* args) static bool HandleLfgQueueInfoCommand(ChatHandler* /*handler*/, char const* /*args*/)
{ {
return true; return true;
} }
+1 -1
View File
@@ -1092,7 +1092,7 @@ public:
return true; 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" // pussywizard: fully disabled on 28.12.2011, but disabled it "silently"
return true; return true;
+3 -3
View File
@@ -34,7 +34,7 @@ public:
return commandTable; return commandTable;
} }
static bool HandleSpectatorCommand(ChatHandler* handler, char const* args) static bool HandleSpectatorCommand(ChatHandler* handler, char const* /*args*/)
{ {
handler->PSendSysMessage("Incorrect syntax."); handler->PSendSysMessage("Incorrect syntax.");
handler->PSendSysMessage("Command has subcommands:"); handler->PSendSysMessage("Command has subcommands:");
@@ -50,7 +50,7 @@ public:
return true; return true;
} }
static bool HandleSpectatorResetCommand(ChatHandler* handler, char const* args) static bool HandleSpectatorResetCommand(ChatHandler* handler, char const* /*args*/)
{ {
Player* p = handler->GetSession()->GetPlayer(); Player* p = handler->GetSession()->GetPlayer();
if (!p->IsSpectator()) if (!p->IsSpectator())
@@ -59,7 +59,7 @@ public:
return true; return true;
} }
static bool HandleSpectatorLeaveCommand(ChatHandler* handler, char const* args) static bool HandleSpectatorLeaveCommand(ChatHandler* handler, char const* /*args*/)
{ {
Player* player = handler->GetSession()->GetPlayer(); Player* player = handler->GetSession()->GetPlayer();
if (!player->IsSpectator() || !player->FindMap() || !player->FindMap()->IsBattleArena()) 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() void JustReachedHome()
{ {
@@ -434,7 +434,7 @@ public:
Talk(SAY_SLAY, victim); Talk(SAY_SLAY, victim);
} }
void MovementInform(uint32 type, uint32 id) void MovementInform(uint32 type, uint32 /*id*/)
{ {
if (type != POINT_MOTION_TYPE) if (type != POINT_MOTION_TYPE)
return; return;
@@ -51,7 +51,7 @@ class boss_curator : public CreatureScript
me->ApplySpellImmune(0, IMMUNITY_EFFECT, SPELL_EFFECT_POWER_BURN, true); 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) 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) 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); 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) if (spellInfo->Mechanic == MECHANIC_DISARM && _events.GetNextEventTime(EVENT_KILL_TALK) == 0)
{ {
@@ -59,7 +59,7 @@ class boss_servant_quarters : public CreatureScript
me->DespawnOrUnsummon(1); me->DespawnOrUnsummon(1);
} }
void EnterCombat(Unit* who) void EnterCombat(Unit* /*who*/)
{ {
me->setActive(true); me->setActive(true);
if (me->GetEntry() == NPC_HYAKISS_THE_LURKER) if (me->GetEntry() == NPC_HYAKISS_THE_LURKER)
@@ -323,7 +323,7 @@ public:
amplitude = 5000; amplitude = 5000;
} }
void Update(AuraEffect const* effect) void Update(AuraEffect const* /*effect*/)
{ {
PreventDefaultAction(); PreventDefaultAction();
if (roll_chance_i(35)) if (roll_chance_i(35))
@@ -116,7 +116,7 @@ public:
summons.Summon(summon); summons.Summon(summon);
} }
void SummonedCreatureDies(Creature* summon, Unit*) void SummonedCreatureDies(Creature* /*summon*/, Unit*)
{ {
if (me->IsAlive() && HelpersKilled < SAY_PLAYER_KILLED) if (me->IsAlive() && HelpersKilled < SAY_PLAYER_KILLED)
{ {
@@ -134,7 +134,7 @@ public:
++HelpersKilled; ++HelpersKilled;
} }
void EnterCombat(Unit* who) void EnterCombat(Unit* /*who*/)
{ {
Talk(SAY_AGGRO); Talk(SAY_AGGRO);
summons.DoZoneInCombat(); summons.DoZoneInCombat();
@@ -266,7 +266,7 @@ struct boss_priestess_lackey_commonAI : public ScriptedAI
uint32 actualEventId; uint32 actualEventId;
uint8 aiType; 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); float unimportant_dist = (aiType == AI_TYPE_MELEE ? 5.0f : 25.0f);
if (dist > unimportant_dist) dist -= unimportant_dist; else dist = 0.0f; if (dist > unimportant_dist) dist -= unimportant_dist; else dist = 0.0f;
@@ -426,7 +426,7 @@ public:
events.ScheduleEvent(EVENT_SPELL_BACKSTAB, 4000); 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()) if (type == CHASE_MOTION_TYPE && me->HasAura(SPELL_VANISH) && me->GetVictim())
me->CastSpell(me->GetVictim(), SPELL_KIDNEY_SHOT, false); me->CastSpell(me->GetVictim(), SPELL_KIDNEY_SHOT, false);
@@ -276,7 +276,7 @@ public:
return true; 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(); plr->PlayerTalkClass->ClearMenus();
@@ -171,7 +171,7 @@ class spell_shadowfang_keep_forsaken_skills : public SpellScriptLoader
GetUnitOwner()->CastSpell(GetUnitOwner(), _forsakenSpell, true); GetUnitOwner()->CastSpell(GetUnitOwner(), _forsakenSpell, true);
} }
void HandleDummyTick(AuraEffect const* aurEff) void HandleDummyTick(AuraEffect const* /*aurEff*/)
{ {
PreventDefaultAction(); PreventDefaultAction();
GetUnitOwner()->RemoveAurasDueToSpell(_forsakenSpell); GetUnitOwner()->RemoveAurasDueToSpell(_forsakenSpell);
@@ -398,7 +398,7 @@ public:
me->CastSpell(me, SPELL_DEMONIC_VAPOR_PERIODIC, true); 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) 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); 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); 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); GetTarget()->RemoveAurasDueToSpell(SPELL_FOG_OF_CORRUPTION_CHARM2);
Unit::Kill(GetCaster(), GetTarget(), false); 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); 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 (InstanceScript* instance = GetUnitOwner()->GetInstanceScript())
if (instance->IsEncounterInProgress()) if (instance->IsEncounterInProgress())
@@ -734,7 +734,7 @@ class spell_kalecgos_spectral_realm : public SpellScriptLoader
{ {
PrepareAuraScript(spell_kalecgos_spectral_realm_AuraScript); 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_SPECTRAL_EXHAUSTION, true);
GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_TELEPORT_NORMAL_REALM, 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); PrepareSpellScript(spell_kiljaeden_flame_dart_SpellScript);
void HandleSchoolDamage(SpellEffIndex effIndex) void HandleSchoolDamage(SpellEffIndex /*effIndex*/)
{ {
if (Unit* target = GetHitUnit()) if (Unit* target = GetHitUnit())
target->CastSpell(target, SPELL_FLAME_DART_EXPLOSION, true); target->CastSpell(target, SPELL_FLAME_DART_EXPLOSION, true);
@@ -1149,7 +1149,7 @@ class spell_kiljaeden_darkness : public SpellScriptLoader
{ {
PrepareAuraScript(spell_kiljaeden_darkness_AuraScript); PrepareAuraScript(spell_kiljaeden_darkness_AuraScript);
void HandleRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{ {
if (GetUnitOwner()->GetTypeId() == TYPEID_UNIT) if (GetUnitOwner()->GetTypeId() == TYPEID_UNIT)
GetUnitOwner()->ToCreature()->AI()->DoAction(ACTION_NO_KILL_TALK); 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); 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); 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); 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); 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_MAGE1, true);
GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_SUMMON_FURY_MAGE2, 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); PrepareAuraScript(spell_entropius_void_zone_visual_AuraScript);
void HandleApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) void HandleApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{ {
SetDuration(3000); 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); 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); 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)) if (Creature* keeper = GetCaster()->FindNearestCreature(NPC_STONE_KEEPER, 100.0f, true))
keeper->AI()->SetData(1, 1); keeper->AI()->SetData(1, 1);
@@ -207,7 +207,7 @@ class spell_uldaman_boss_agro_archaedas : public SpellScriptLoader
{ {
PrepareSpellScript(spell_uldaman_boss_agro_archaedas_SpellScript); PrepareSpellScript(spell_uldaman_boss_agro_archaedas_SpellScript);
void HandleSendEvent(SpellEffIndex effIndex) void HandleSendEvent(SpellEffIndex /*effIndex*/)
{ {
InstanceScript* instance = GetCaster()->GetInstanceScript(); InstanceScript* instance = GetCaster()->GetInstanceScript();
if (!instance || instance->GetData(DATA_ARCHAEDAS) == IN_PROGRESS) if (!instance || instance->GetData(DATA_ARCHAEDAS) == IN_PROGRESS)
@@ -259,7 +259,7 @@ public:
me->CastSpell(me, SPELL_DEATHS_DOOR, true); me->CastSpell(me, SPELL_DEATHS_DOOR, true);
} }
void MovementInform(uint32 type, uint32 pointId) void MovementInform(uint32 type, uint32 /*pointId*/)
{ {
if (type != POINT_MOTION_TYPE) if (type != POINT_MOTION_TYPE)
return; return;
@@ -474,7 +474,7 @@ public:
{ {
PrepareSpellScript(spell_bh_cleanse_quel_delar_SpellScript); PrepareSpellScript(spell_bh_cleanse_quel_delar_SpellScript);
void OnEffect(SpellEffIndex effIndex) void OnEffect(SpellEffIndex /*effIndex*/)
{ {
if (Unit* caster = GetCaster()) if (Unit* caster = GetCaster())
if (Creature* c = caster->FindNearestCreature(NPC_ROMMATH, 50.0f, true)) 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); events.ScheduleEvent(EVENT_DIREBREW_RESPAWN2, 10000);
} }
void JustDied(Unit* killer) void JustDied(Unit* /*killer*/)
{ {
summons.DespawnAll(); summons.DespawnAll();
summons.DoAction(ACTION_RELEASE_LOOT); summons.DoAction(ACTION_RELEASE_LOOT);
@@ -299,7 +299,7 @@ public:
} }
void EnterCombat(Unit* who) void EnterCombat(Unit* /*who*/)
{ {
if (me->GetEntry() == NPC_URSULA_DIREBREW) if (me->GetEntry() == NPC_URSULA_DIREBREW)
events.ScheduleEvent(EVENT_SISTERS_BARREL, 18000); events.ScheduleEvent(EVENT_SISTERS_BARREL, 18000);
@@ -452,7 +452,7 @@ class npc_brewfest_keg_reciver : public CreatureScript
return new npc_brewfest_keg_reciverAI(creature); 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) 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 = ""; std::string str = "";
switch (questId) switch (questId)
@@ -680,7 +680,7 @@ class npc_dark_iron_attack_generator : public CreatureScript
} }
// DARK IRON ATTACK EVENT // DARK IRON ATTACK EVENT
void MoveInLineOfSight(Unit* who) {} void MoveInLineOfSight(Unit* /*who*/) {}
void EnterCombat(Unit*) {} void EnterCombat(Unit*) {}
void SpellHit(Unit* caster, const SpellInfo* spellInfo) 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); 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) if (me->IsAlive() && spellInfo->Id == SPELL_PLAYER_MUG)
{ {
@@ -1093,7 +1093,7 @@ class npc_brewfest_super_brew_trigger : public CreatureScript
uint32 timer; uint32 timer;
void EnterCombat(Unit*) {} 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(); Unit* target = GetTarget();
target->SetObjectScale(0.5f); target->SetObjectScale(0.5f);
@@ -493,7 +493,7 @@ public:
return true; 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)) 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); creature->AI()->DoAction(ACTION_START_EVENT);
@@ -523,7 +523,7 @@ class npc_soh_fire_trigger : public CreatureScript
me->SetDisableGravity(true); me->SetDisableGravity(true);
} }
void SpellHit(Unit* caster, const SpellInfo* spellInfo) void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo)
{ {
if (spellInfo->Id == SPELL_START_FIRE) if (spellInfo->Id == SPELL_START_FIRE)
{ {
@@ -584,7 +584,7 @@ class npc_hallows_end_soh : public CreatureScript
std::list<uint64> unitList; std::list<uint64> unitList;
int32 pos; int32 pos;
void EnterCombat(Unit*) {} void EnterCombat(Unit*) {}
void MoveInLineOfSight(Unit* who){} void MoveInLineOfSight(Unit* /*who*/){}
void DoAction(int32 param) 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->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); me->PlayDirectSound(11969);
@@ -904,7 +904,7 @@ class boss_headless_horseman : public CreatureScript
uint8 phase; uint8 phase;
uint32 health; uint32 health;
void JustDied(Unit* killer) void JustDied(Unit* /*killer*/)
{ {
summons.DespawnAll(); summons.DespawnAll();
me->MonsterSay("This end have I reached before. What new adventure lies in store?", LANG_UNIVERSAL, 0); 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()); 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->MonsterYell("Your body lies beaten, battered and broken. Let my curse be your own, fate has spoken.", LANG_UNIVERSAL, 0);
me->PlayDirectSound(SOUND_SLAY); 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) 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; } Player* GetRhymePlayer() { return playerGUID ? ObjectAccessor::GetPlayer(*me, playerGUID) : NULL; }
void EnterCombat(Unit*) { me->SetInCombatWithZone(); } void EnterCombat(Unit*) { me->SetInCombatWithZone(); }
void MoveInLineOfSight(Unit* who) {} void MoveInLineOfSight(Unit* /*who*/) {}
void DamageTaken(Unit*, uint32 &damage, DamageEffectType, SpellSchoolMask) void DamageTaken(Unit*, uint32 &damage, DamageEffectType, SpellSchoolMask)
{ {
@@ -1174,7 +1174,7 @@ class boss_headless_horseman_head : public CreatureScript
uint32 timer; uint32 timer;
bool handled; bool handled;
void SpellHitTarget(Unit* target, const SpellInfo* spellInfo) void SpellHitTarget(Unit* /*target*/, const SpellInfo* spellInfo)
{ {
if (spellInfo->Id == SPELL_THROW_HEAD_BACK) 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); 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) if (spellInfo->Id == SPELL_SPROUTING)
{ {
+2 -2
View File
@@ -21,7 +21,7 @@ class go_midsummer_bonfire : public GameObjectScript
public: public:
go_midsummer_bonfire() : GameObjectScript("go_midsummer_bonfire") { } 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(); player->CLOSE_GOSSIP_MENU();
// we know that there is only one gossip. // we know that there is only one gossip.
@@ -274,7 +274,7 @@ public:
{ {
PrepareAuraScript(spell_midsummer_ribbon_pole_AuraScript) PrepareAuraScript(spell_midsummer_ribbon_pole_AuraScript)
void HandleEffectPeriodic(AuraEffect const * aurEff) void HandleEffectPeriodic(AuraEffect const * /*aurEff*/)
{ {
PreventDefaultAction(); PreventDefaultAction();
if (Unit *target = GetTarget()) if (Unit *target = GetTarget())
+4 -4
View File
@@ -102,10 +102,10 @@ class npc_pilgrims_bounty_chair : public CreatureScript
me->SetReactState(REACT_PASSIVE); me->SetReactState(REACT_PASSIVE);
} }
void MoveInLineOfSight(Unit* who) {} void MoveInLineOfSight(Unit* /*who*/) {}
void AttackStart(Unit*) {} 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) if (apply && who->GetTypeId() == TYPEID_PLAYER)
who->ToPlayer()->SetClientControl(me, 0, true); who->ToPlayer()->SetClientControl(me, 0, true);
@@ -200,7 +200,7 @@ class npc_pilgrims_bounty_chair : public CreatureScript
charm->ToCreature()->AI()->DoAction(spellInfo->Id); charm->ToCreature()->AI()->DoAction(spellInfo->Id);
} }
void SpellHit(Unit* target, const SpellInfo* spellInfo) void SpellHit(Unit* /*target*/, const SpellInfo* spellInfo)
{ {
switch (spellInfo->Id) 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) switch (spellInfo->Id)
{ {
@@ -131,7 +131,7 @@ public:
Talk(SAY_DEATH); Talk(SAY_DEATH);
} }
void KilledUnit(Unit* victim) void KilledUnit(Unit* /*victim*/)
{ {
if (!urand(0,1)) if (!urand(0,1))
return; return;
@@ -84,7 +84,7 @@ public:
{ {
} }
void KilledUnit(Unit* victim) void KilledUnit(Unit* /*victim*/)
{ {
if (!urand(0,1)) if (!urand(0,1))
return; return;
@@ -63,7 +63,7 @@ public:
Talk(SAY_DEATH); Talk(SAY_DEATH);
} }
void KilledUnit(Unit* victim) void KilledUnit(Unit* /*victim*/)
{ {
if (!urand(0,1)) if (!urand(0,1))
return; return;
@@ -84,7 +84,7 @@ public:
Talk(SAY_DEATH); Talk(SAY_DEATH);
} }
void KilledUnit(Unit* victim) void KilledUnit(Unit* /*victim*/)
{ {
if (!urand(0,1)) if (!urand(0,1))
return; return;
@@ -1409,7 +1409,7 @@ class npc_cos_chromie_start : public CreatureScript
return true; 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 // final menu id, show crates if hidden and add item if missing
if (player->PlayerTalkClass->GetGossipMenu().GetMenuId() == 9595) if (player->PlayerTalkClass->GetGossipMenu().GetMenuId() == 9595)
@@ -1457,7 +1457,7 @@ class npc_cos_chromie_middle : public CreatureScript
return true; 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) if (!creature->GetInstanceScript() || creature->GetInstanceScript()->GetData(DATA_ARTHAS_EVENT) != COS_PROGRESS_CRATES_FOUND)
return true; return true;
@@ -134,7 +134,7 @@ public:
events.ScheduleEvent(EVENT_SPELL_CONSECRATION, 1000); events.ScheduleEvent(EVENT_SPELL_CONSECRATION, 1000);
} }
void KilledUnit(Unit* victim) void KilledUnit(Unit* /*victim*/)
{ {
Talk(SAY_SLAY); Talk(SAY_SLAY);
} }
@@ -206,7 +206,7 @@ public:
return true; 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); GossipMenuItemData const* gossipMenuItemData = player->PlayerTalkClass->GetGossipMenu().GetItemData(0);
InstanceScript* instance = creature->GetInstanceScript(); InstanceScript* instance = creature->GetInstanceScript();
@@ -853,7 +853,7 @@ public:
return GetInstanceAI<npc_tarethaAI>(creature); return GetInstanceAI<npc_tarethaAI>(creature);
} }
bool OnGossipHello(Player* player, Creature* creature) bool OnGossipHello(Player* /*player*/, Creature* /*creature*/)
{ {
return true; return true;
} }
@@ -867,7 +867,7 @@ public:
InstanceScript* instance; InstanceScript* instance;
void DoAction(int32 param) void DoAction(int32 /*param*/)
{ {
me->SetStandState(UNIT_STAND_STATE_STAND); me->SetStandState(UNIT_STAND_STATE_STAND);
me->RemoveAllAuras(); me->RemoveAllAuras();
@@ -133,7 +133,7 @@ public:
} }
} }
void SetData(uint32 type, uint32 data) void SetData(uint32 type, uint32 /*data*/)
{ {
switch (type) switch (type)
{ {
@@ -193,7 +193,7 @@ public:
me->GetMap()->ToInstanceMap()->PermBindAllPlayers(); me->GetMap()->ToInstanceMap()->PermBindAllPlayers();
} }
void EnterCombat(Unit* who) void EnterCombat(Unit* /*who*/)
{ {
Talk(SAY_AGGRO); Talk(SAY_AGGRO);
DoZoneInCombat(); DoZoneInCombat();
@@ -208,13 +208,13 @@ public:
BindPlayers(); BindPlayers();
} }
void JustDied(Unit* killer) void JustDied(Unit* /*killer*/)
{ {
if( m_pInstance ) if( m_pInstance )
m_pInstance->SetData(DATA_ONYXIA, DONE); m_pInstance->SetData(DATA_ONYXIA, DONE);
} }
void DamageTaken(Unit*, uint32 &damage, DamageEffectType, SpellSchoolMask) void DamageTaken(Unit*, uint32 & /*damage*/, DamageEffectType, SpellSchoolMask)
{ {
switch( Phase ) switch( Phase )
{ {
@@ -645,8 +645,8 @@ public:
{ {
npc_onyxia_triggerAI(Creature* pCreature) : ScriptedAI(pCreature) {} npc_onyxia_triggerAI(Creature* pCreature) : ScriptedAI(pCreature) {}
void MoveInLineOfSight(Unit* who) {} void MoveInLineOfSight(Unit* /*who*/) {}
void UpdateAI(uint32 diff) {} void UpdateAI(uint32 /*diff*/) {}
}; };
}; };
@@ -159,7 +159,7 @@ public:
OUT_LOAD_INST_DATA_COMPLETE; 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) switch(criteria_id)
{ {
@@ -133,7 +133,7 @@ class spell_zulfarrak_unlocking : public SpellScriptLoader
{ {
PrepareSpellScript(spell_zulfarrak_unlocking_SpellScript); PrepareSpellScript(spell_zulfarrak_unlocking_SpellScript);
void HandleOpenLock(SpellEffIndex effIndex) void HandleOpenLock(SpellEffIndex /*effIndex*/)
{ {
GameObject* cage = GetHitGObj(); GameObject* cage = GetHitGObj();
std::list<WorldObject*> cagesList; std::list<WorldObject*> cagesList;
@@ -92,7 +92,7 @@ class boss_anub_arak : public CreatureScript
BossAI::JustDied(killer); BossAI::JustDied(killer);
} }
void KilledUnit(Unit* victim) void KilledUnit(Unit* /*victim*/)
{ {
if (events.GetNextEventTime(EVENT_KILL_TALK) == 0) 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) PrepareAuraScript(spell_azjol_nerub_carrion_beetelsAuraScript)
void HandleEffectPeriodic(AuraEffect const* aurEff) void HandleEffectPeriodic(AuraEffect const* /*aurEff*/)
{ {
// Xinef: 2 each second // Xinef: 2 each second
GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_SUMMON_CARRION_BEETLES, true); 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); PrepareSpellScript(spell_azjol_nerub_pound_SpellScript);
void HandleApplyAura(SpellEffIndex effIndex) void HandleApplyAura(SpellEffIndex /*effIndex*/)
{ {
if (Unit* unitTarget = GetHitUnit()) if (Unit* unitTarget = GetHitUnit())
GetCaster()->CastSpell(unitTarget, SPELL_POUND_DAMAGE, true); GetCaster()->CastSpell(unitTarget, SPELL_POUND_DAMAGE, true);
@@ -219,7 +219,7 @@ public:
me->CastSpell(me, SPELL_LIGHTNING_BOLTS, true); me->CastSpell(me, SPELL_LIGHTNING_BOLTS, true);
} }
void EnterCombat(Unit* who) void EnterCombat(Unit* /*who*/)
{ {
if (pInstance) if (pInstance)
pInstance->SetData(DATA_JEDOGA_SHADOWSEEKER_EVENT, IN_PROGRESS); 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) if (id == 0)
me->DisappearAndDie(); me->DisappearAndDie();
@@ -132,7 +132,7 @@ public:
return 0; 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) switch(criteria_id)
{ {
@@ -338,7 +338,7 @@ public:
me->CastSpell(me, SPELL_SARTHARION_TWILIGHT_REVENGE, true); me->CastSpell(me, SPELL_SARTHARION_TWILIGHT_REVENGE, true);
} }
void EnterCombat(Unit* pWho) void EnterCombat(Unit* /*pWho*/)
{ {
me->CastSpell(me, SPELL_SARTHARION_PYROBUFFET, true); me->CastSpell(me, SPELL_SARTHARION_PYROBUFFET, true);
me->SetInCombatWithZone(); me->SetInCombatWithZone();
@@ -358,7 +358,7 @@ public:
me->CallForHelp(500.0f); me->CallForHelp(500.0f);
} }
void JustDied(Unit* pKiller) void JustDied(Unit* /*pKiller*/)
{ {
RespawnDragons(true); RespawnDragons(true);
summons.DespawnEntry(NPC_FLAME_TSUNAMI); summons.DespawnEntry(NPC_FLAME_TSUNAMI);
@@ -942,7 +942,7 @@ public:
Talk(SAY_SHADRON_SLAY); Talk(SAY_SHADRON_SLAY);
} }
void SummonedCreatureDies(Creature *summon, Unit*) void SummonedCreatureDies(Creature * /*summon*/, Unit*)
{ {
if (isSartharion && pInstance) if (isSartharion && pInstance)
{ {
@@ -1172,7 +1172,7 @@ public:
Talk(SAY_VESPERON_SLAY); Talk(SAY_VESPERON_SLAY);
} }
void SummonedCreatureDies(Creature *summon, Unit*) void SummonedCreatureDies(Creature * /*summon*/, Unit*)
{ {
if (!isSartharion) if (!isSartharion)
ClearInstance(); ClearInstance();
@@ -89,7 +89,7 @@ public:
return 0; 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) switch(criteria_id)
{ {
@@ -172,7 +172,7 @@ class boss_baltharus_the_warborn : public CreatureScript
xerestrasza->AI()->DoAction(ACTION_BALTHARUS_DEATH); xerestrasza->AI()->DoAction(ACTION_BALTHARUS_DEATH);
} }
void KilledUnit(Unit* victim) void KilledUnit(Unit* /*victim*/)
{ {
if (events.GetNextEventTime(EVENT_KILL_TALK) == 0) if (events.GetNextEventTime(EVENT_KILL_TALK) == 0)
{ {
@@ -118,7 +118,7 @@ class boss_general_zarithrian : public CreatureScript
Talk(SAY_DEATH); Talk(SAY_DEATH);
} }
void KilledUnit(Unit* victim) void KilledUnit(Unit* /*victim*/)
{ {
if (events.GetNextEventTime(EVENT_KILL_TALK) == 0) if (events.GetNextEventTime(EVENT_KILL_TALK) == 0)
{ {
@@ -441,7 +441,7 @@ class boss_twilight_halion : public CreatureScript
me->SetReactState(REACT_DEFENSIVE); me->SetReactState(REACT_DEFENSIVE);
} }
void EnterCombat(Unit* who) void EnterCombat(Unit* /*who*/)
{ {
_events.Reset(); _events.Reset();
_events.ScheduleEvent(EVENT_CLEAVE, urand(8000, 10000)); _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); 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 PreventDefaultAction(); // xinef: 3/5 straight, 2/5 turn
if (!GetUnitOwner()->GetInstanceScript() || !GetUnitOwner()->GetInstanceScript()->IsEncounterInProgress()) 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); 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) if (GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_EXPIRE)
return; return;
@@ -1078,7 +1078,7 @@ class spell_halion_clear_debuffs : public SpellScriptLoader
{ {
PrepareSpellScript(spell_halion_clear_debuffs_SpellScript); PrepareSpellScript(spell_halion_clear_debuffs_SpellScript);
void HandleScriptEffect(SpellEffIndex effIndex) void HandleScriptEffect(SpellEffIndex /*effIndex*/)
{ {
if (Unit* target = GetHitUnit()) if (Unit* target = GetHitUnit())
{ {
@@ -1366,7 +1366,7 @@ class spell_halion_twilight_division : public SpellScriptLoader
{ {
PrepareSpellScript(spell_halion_twilight_division_SpellScript); PrepareSpellScript(spell_halion_twilight_division_SpellScript);
void HandleDummy(SpellEffIndex effIndex) void HandleDummy(SpellEffIndex /*effIndex*/)
{ {
InstanceScript* instance = GetCaster()->GetInstanceScript(); InstanceScript* instance = GetCaster()->GetInstanceScript();
Creature* controller = ObjectAccessor::GetCreature(*GetCaster(), instance->GetData64(NPC_HALION_CONTROLLER)); 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); PrepareSpellScript(spell_halion_twilight_mending_SpellScript);
void HandleHealPct(SpellEffIndex effIndex) void HandleHealPct(SpellEffIndex /*effIndex*/)
{ {
if (Creature* target = GetHitCreature()) if (Creature* target = GetHitCreature())
target->AI()->Talk(SAY_REGENERATE); target->AI()->Talk(SAY_REGENERATE);
@@ -104,7 +104,7 @@ class boss_saviana_ragefire : public CreatureScript
me->SetHover(false); me->SetHover(false);
} }
void KilledUnit(Unit* victim) void KilledUnit(Unit* /*victim*/)
{ {
if (events.GetNextEventTime(EVENT_KILL_TALK) == 0) if (events.GetNextEventTime(EVENT_KILL_TALK) == 0)
{ {
@@ -113,7 +113,7 @@ public:
} }
} }
void EnterCombat(Unit* who) void EnterCombat(Unit* /*who*/)
{ {
events.Reset(); events.Reset();
events.ScheduleEvent(EVENT_SPELL_RADIANCE, 16000); events.ScheduleEvent(EVENT_SPELL_RADIANCE, 16000);
@@ -124,7 +124,7 @@ public:
pInstance->SetData(BOSS_ARGENT_CHALLENGE, IN_PROGRESS); 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) if (spell->Id == 66905 && me->GetHealth() == 1) // hammer throw back damage (15k)
me->CastSpell(me, 68197, true); me->CastSpell(me, 68197, true);
@@ -244,7 +244,7 @@ public:
} }
} }
void EnterCombat(Unit* who) void EnterCombat(Unit* /*who*/)
{ {
events.Reset(); events.Reset();
events.ScheduleEvent(EVENT_SPELL_HOLY_FIRE, urand(9000,12000)); events.ScheduleEvent(EVENT_SPELL_HOLY_FIRE, urand(9000,12000));
@@ -807,7 +807,7 @@ class spell_reflective_shield : public SpellScriptLoader
{ {
PrepareAuraScript(spell_reflective_shield_AuraScript) 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( Unit* attacker = dmgInfo.GetAttacker() )
if( GetOwner() && attacker->GetGUID() != GetOwner()->GetGUID() ) 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 ) switch( spell->Id )
{ {
@@ -392,7 +392,7 @@ public:
events.Reset(); events.Reset();
} }
void EnterCombat(Unit* who) void EnterCombat(Unit* /*who*/)
{ {
events.Reset(); events.Reset();
if (me->GetEntry() == NPC_RISEN_JAEREN || me->GetEntry() == NPC_RISEN_ARELAS) if (me->GetEntry() == NPC_RISEN_JAEREN || me->GetEntry() == NPC_RISEN_ARELAS)
@@ -400,7 +400,7 @@ public:
events.RescheduleEvent(2, urand(3000,4000)); // claw 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) if (spell->Id == SPELL_BK_GHOUL_EXPLODE)
{ {
@@ -169,7 +169,7 @@ public:
} }
// just in case, should be done in spell_gen_defend // 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()) if (me->IsDuringRemoveFromWorld())
return; return;
@@ -184,7 +184,7 @@ public:
} }
//void EnterEvadeMode() { CreatureAI::EnterEvadeMode(); } //void EnterEvadeMode() { CreatureAI::EnterEvadeMode(); }
void MoveInLineOfSight(Unit* who) {} void MoveInLineOfSight(Unit* /*who*/) {}
void UpdateAI(uint32 diff) void UpdateAI(uint32 diff)
{ {
if (m_ConditionsTimer <= diff) if (m_ConditionsTimer <= diff)
@@ -198,8 +198,8 @@ public:
else else
m_ConditionsTimer -= diff; m_ConditionsTimer -= diff;
} }
void AttackStart(Unit* who) {} void AttackStart(Unit* /*who*/) {}
void EnterCombat(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 ) 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) switch(criteria_id)
{ {
@@ -105,7 +105,7 @@ public:
damage = me->GetHealth()-1; damage = me->GetHealth()-1;
} }
void MovementInform(uint32 type, uint32 id) void MovementInform(uint32 type, uint32 /*id*/)
{ {
if (type != EFFECT_MOTION_TYPE) if (type != EFFECT_MOTION_TYPE)
return; return;
@@ -118,7 +118,7 @@ public:
Unit::Kill(me, me); // for bk scene, die after knockback Unit::Kill(me, me); // for bk scene, die after knockback
} }
void UpdateAI(uint32 diff) {} void UpdateAI(uint32 /*diff*/) {}
}; };
}; };
@@ -509,7 +509,7 @@ public:
DoMeleeAttackIfReady(); 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->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)); 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 ) if( spell->Id == SPELL_SPIKE_FAIL )
{ {
@@ -710,7 +710,7 @@ public:
DoMeleeAttackIfReady(); DoMeleeAttackIfReady();
} }
void JustDied(Unit* killer) void JustDied(Unit* /*killer*/)
{ {
me->m_Events.AddEvent(new HideNpcEvent(*me), me->m_Events.CalculateTime(5000)); 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) PrepareAuraScript(spell_pursuing_spikesAuraScript)
void HandleEffectPeriodic(AuraEffect const * aurEff) void HandleEffectPeriodic(AuraEffect const * /*aurEff*/)
{ {
if( Unit* target = GetTarget() ) if( Unit* target = GetTarget() )
{ {
@@ -57,7 +57,7 @@ struct boss_faction_championsAI : public ScriptedAI
UnitAI::AttackStartCaster(who, 18.5f); 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; /*float mod_health = ((float)health)/maxhealth;
if (mod_health < 0.4f) mod_health = 0.4f; 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); pInstance->SetData(TYPE_FACTION_CHAMPIONS, DONE);
} }
void KilledUnit(Unit* who) void KilledUnit(Unit* /*who*/)
{ {
if( pInstance ) if( pInstance )
pInstance->SetData(TYPE_FACTION_CHAMPIONS_PLAYER_DIED, 1); pInstance->SetData(TYPE_FACTION_CHAMPIONS_PLAYER_DIED, 1);
@@ -373,7 +373,7 @@ public:
events.RescheduleEvent(EVENT_SPELL_MISTRESS_KISS, urand(10000,15000)); 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*/) //if (caster && spell && spell->Id == 66287 /*control vehicle*/)
// caster->ClearUnitState(UNIT_STATE_ONVEHICLE); // caster->ClearUnitState(UNIT_STATE_ONVEHICLE);
@@ -434,7 +434,7 @@ public:
{ {
PrepareAuraScript(spell_toc25_mistress_kiss_AuraScript) PrepareAuraScript(spell_toc25_mistress_kiss_AuraScript)
void HandleEffectPeriodic(AuraEffect const * aurEff) void HandleEffectPeriodic(AuraEffect const * /*aurEff*/)
{ {
if (Unit* caster = GetCaster()) if (Unit* caster = GetCaster())
if (Unit* target = GetTarget()) if (Unit* target = GetTarget())
@@ -90,7 +90,7 @@ public:
events.ScheduleEvent(EVENT_SPELL_FIRE_BOMB, urand(10000,30000)); events.ScheduleEvent(EVENT_SPELL_FIRE_BOMB, urand(10000,30000));
} }
void EnterCombat(Unit* who) void EnterCombat(Unit* /*who*/)
{ {
events.Reset(); events.Reset();
events.ScheduleEvent(EVENT_SPELL_SNOBOLLED, 1500); events.ScheduleEvent(EVENT_SPELL_SNOBOLLED, 1500);
@@ -818,7 +818,7 @@ public:
return false; return false;
} }
void MovementInform(uint32 type, uint32 id) void MovementInform(uint32 /*type*/, uint32 id)
{ {
if( id == EVENT_CHARGE ) if( id == EVENT_CHARGE )
{ {
@@ -521,7 +521,7 @@ public:
boss_twin_valkyrAI::JustSummoned(c); boss_twin_valkyrAI::JustSummoned(c);
} }
void JustSummoned(Creature* s) {} void JustSummoned(Creature* /*s*/) {}
}; };
}; };
@@ -547,7 +547,7 @@ public:
boss_twin_valkyrAI::JustSummoned(c); 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()); 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 ) if( despawning )
return; return;
@@ -869,7 +869,7 @@ class spell_valkyr_ball_periodic_dummy : public SpellScriptLoader
{ {
PrepareAuraScript(spell_valkyr_ball_periodic_dummyAuraScript) PrepareAuraScript(spell_valkyr_ball_periodic_dummyAuraScript)
void HandleEffectPeriodic(AuraEffect const * aurEff) void HandleEffectPeriodic(AuraEffect const * /*aurEff*/)
{ {
if (Unit* target = GetTarget()) if (Unit* target = GetTarget())
if (target->GetDisplayId() != 11686) if (target->GetDisplayId() != 11686)
@@ -1638,7 +1638,7 @@ public:
OUT_LOAD_INST_DATA_COMPLETE; 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) switch(criteria_id)
{ {
@@ -87,7 +87,7 @@ class boss_novos : public CreatureScript
_achievement = false; _achievement = false;
} }
void MoveInLineOfSight(Unit* who) { } void MoveInLineOfSight(Unit* /*who*/) { }
void EnterCombat(Unit* who) void EnterCombat(Unit* who)
{ {
@@ -118,7 +118,7 @@ class boss_novos : public CreatureScript
instance->SetBossState(DATA_NOVOS_CRYSTALS, DONE); instance->SetBossState(DATA_NOVOS_CRYSTALS, DONE);
} }
void KilledUnit(Unit* victim) void KilledUnit(Unit* /*victim*/)
{ {
if (events.GetNextEventTime(EVENT_KILL_TALK) == 0) 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) PrepareAuraScript(spell_novos_crystal_handler_death_AuraScript)
void HandleEffectApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{ {
GetUnitOwner()->InterruptNonMeleeSpells(false); GetUnitOwner()->InterruptNonMeleeSpells(false);
if (GameObject* crystal = GetUnitOwner()->FindNearestGameObjectOfType(GAMEOBJECT_TYPE_DOOR, 5.0f)) 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); events.ScheduleEvent(EVENT_SPELL_TURN_FLESH, 1000);
} }
void KilledUnit(Unit *victim) void KilledUnit(Unit * /*victim*/)
{ {
if (events.GetNextEventTime(EVENT_KILL_TALK) == 0) if (events.GetNextEventTime(EVENT_KILL_TALK) == 0)
{ {
@@ -233,7 +233,7 @@ class spell_tharon_ja_dummy : public SpellScriptLoader
{ {
PrepareAuraScript(spell_tharon_ja_dummy_AuraScript) PrepareAuraScript(spell_tharon_ja_dummy_AuraScript)
void HandleEffectApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{ {
PreventDefaultAction(); PreventDefaultAction();
GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_FLESH_VISUAL, true); GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_FLESH_VISUAL, true);
@@ -241,7 +241,7 @@ class spell_tharon_ja_dummy : public SpellScriptLoader
GetUnitOwner()->SetDisplayId(GetUnitOwner()->GetNativeDisplayId()+1); GetUnitOwner()->SetDisplayId(GetUnitOwner()->GetNativeDisplayId()+1);
} }
void HandleEffectRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{ {
PreventDefaultAction(); PreventDefaultAction();
GetUnitOwner()->getThreatManager().resetAllAggro(); GetUnitOwner()->getThreatManager().resetAllAggro();
@@ -82,7 +82,7 @@ class boss_trollgore : public CreatureScript
BossAI::JustDied(killer); BossAI::JustDied(killer);
} }
void KilledUnit(Unit* victim) void KilledUnit(Unit* /*victim*/)
{ {
if (events.GetNextEventTime(EVENT_KILL_TALK) == 0) if (events.GetNextEventTime(EVENT_KILL_TALK) == 0)
{ {
@@ -103,7 +103,7 @@ class spell_dtk_raise_dead : public SpellScriptLoader
return GetUnitOwner()->GetTypeId() == TYPEID_UNIT; return GetUnitOwner()->GetTypeId() == TYPEID_UNIT;
} }
void HandleEffectRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{ {
GetUnitOwner()->ToCreature()->DespawnOrUnsummon(1); GetUnitOwner()->ToCreature()->DespawnOrUnsummon(1);
GetUnitOwner()->SummonCreature(NPC_RISEN_DRAKKARI_WARRIOR, *GetUnitOwner()); 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) if (spell->Id == SPELL_TELEPORT)
{ {
@@ -160,7 +160,7 @@ public:
return 0; 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) switch(criteria_id)
{ {
@@ -164,7 +164,7 @@ public:
{ {
PrepareAuraScript(spell_hor_shared_sufferingAuraScript); 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 (GetTargetApplication()->GetRemoveMode() == AURA_REMOVE_BY_ENEMY_SPELL) // dispelled
if (Unit* caster = GetCaster()) 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: 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 // 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: public:
npc_hor_leader_second() : CreatureScript("npc_hor_leader_second") { } 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)) if (!creature->HasFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP))
return true; return true;
@@ -1675,7 +1675,7 @@ public:
me->GetMotionMaster()->MoveSplinePath(&path); me->GetMotionMaster()->MoveSplinePath(&path);
} }
void MovementInform(uint32 type, uint32 id) void MovementInform(uint32 type, uint32 /*id*/)
{ {
if (type == ESCORT_MOTION_TYPE && me->movespline->Finalized()) if (type == ESCORT_MOTION_TYPE && me->movespline->Finalized())
events.ScheduleEvent(EVENT_SAY_LEADER_STOP_TEXT, 1000); events.ScheduleEvent(EVENT_SAY_LEADER_STOP_TEXT, 1000);
@@ -1792,7 +1792,7 @@ public:
leaped = false; leaped = false;
} }
void UpdateAI(uint32 diff) void UpdateAI(uint32 /*diff*/)
{ {
if (!UpdateVictim()) if (!UpdateVictim())
return; return;
@@ -1969,7 +1969,7 @@ public:
{ {
PrepareAuraScript(spell_hor_gunship_cannon_fireAuraScript) PrepareAuraScript(spell_hor_gunship_cannon_fireAuraScript)
void HandleEffectPeriodic(AuraEffect const * aurEff) void HandleEffectPeriodic(AuraEffect const * /*aurEff*/)
{ {
PreventDefaultAction(); PreventDefaultAction();
if (Unit* caster = GetCaster()) if (Unit* caster = GetCaster())
@@ -90,7 +90,7 @@ public:
pInstance->SetData(DATA_GARFROST, NOT_STARTED); pInstance->SetData(DATA_GARFROST, NOT_STARTED);
} }
void SetData(uint32 id, uint32 data) void SetData(uint32 id, uint32 /*data*/)
{ {
if (id == 1 && pInstance) if (id == 1 && pInstance)
pInstance->SetData(DATA_ACHIEV_ELEVEN, 0); 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)) if (spell->Id == uint32(SPELL_SARONITE_TRIGGERED))
{ {
@@ -80,7 +80,7 @@ public:
pInstance->SetData(DATA_ICK, NOT_STARTED); 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; 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)); 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; return false;
} }
void OnPlayerEnter(Player* plr) void OnPlayerEnter(Player* /*plr*/)
{ {
instance->LoadGrid(LeaderIntroPos.GetPositionX(), LeaderIntroPos.GetPositionY()); instance->LoadGrid(LeaderIntroPos.GetPositionX(), LeaderIntroPos.GetPositionY());
if (Creature* c = instance->GetCreature(GetData64(DATA_LEADER_FIRST_GUID))) if (Creature* c = instance->GetCreature(GetData64(DATA_LEADER_FIRST_GUID)))
@@ -372,7 +372,7 @@ public:
return 0; 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) 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()) 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); summons.Despawn(s);
} }
void AttackStart(Unit* who) {} void AttackStart(Unit* /*who*/) {}
void MoveInLineOfSight(Unit* who) {} void MoveInLineOfSight(Unit* /*who*/) {}
}; };
CreatureAI *GetAI(Creature* creature) const CreatureAI *GetAI(Creature* creature) const
@@ -467,7 +467,7 @@ public:
DoMeleeAttackIfReady(); DoMeleeAttackIfReady();
} }
void MoveInLineOfSight(Unit* who) {} void MoveInLineOfSight(Unit* /*who*/) {}
}; };
CreatureAI *GetAI(Creature* creature) const CreatureAI *GetAI(Creature* creature) const
@@ -1335,7 +1335,7 @@ public:
{ {
PrepareAuraScript(spell_pos_empowered_blizzardAuraScript) PrepareAuraScript(spell_pos_empowered_blizzardAuraScript)
void HandleEffectPeriodic(AuraEffect const * aurEff) void HandleEffectPeriodic(AuraEffect const * /*aurEff*/)
{ {
PreventDefaultAction(); PreventDefaultAction();
if (Unit* caster = GetCaster()) 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()) if (damage >= me->GetHealth())
damage = 0; damage = 0;
@@ -120,7 +120,7 @@ class boss_gal_darah : public CreatureScript
summon->DespawnOrUnsummon(despawnTime); summon->DespawnOrUnsummon(despawnTime);
} }
uint32 GetData(uint32 type) const uint32 GetData(uint32 /*type*/) const
{ {
return impaledList.size(); return impaledList.size();
} }
@@ -80,7 +80,7 @@ class boss_moorabi : public CreatureScript
events.ScheduleEvent(EVENT_TRANSFORMATION, 12000); events.ScheduleEvent(EVENT_TRANSFORMATION, 12000);
} }
void SpellHitTarget(Unit* caster, const SpellInfo* spellInfo) void SpellHitTarget(Unit* /*caster*/, const SpellInfo* spellInfo)
{ {
if (spellInfo->Id == SPELL_TRANSFORMATION) if (spellInfo->Id == SPELL_TRANSFORMATION)
{ {
@@ -164,7 +164,7 @@ class spell_moorabi_mojo_frenzy : public SpellScriptLoader
{ {
PrepareAuraScript(spell_moorabi_mojo_frenzy_AuraScript); PrepareAuraScript(spell_moorabi_mojo_frenzy_AuraScript);
void HandlePeriodic(AuraEffect const* aurEff) void HandlePeriodic(AuraEffect const* /*aurEff*/)
{ {
PreventDefaultAction(); PreventDefaultAction();
@@ -194,7 +194,7 @@ class spell_sladran_grip_of_sladran : public SpellScriptLoader
{ {
PrepareAuraScript(spell_sladran_grip_of_sladran_AuraScript); PrepareAuraScript(spell_sladran_grip_of_sladran_AuraScript);
void HandlePeriodic(AuraEffect const* aurEff) void HandlePeriodic(AuraEffect const* /*aurEff*/)
{ {
PreventDefaultAction(); PreventDefaultAction();
if (GetStackAmount() >= 5) 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) if (target->GetTypeId() != TYPEID_PLAYER)
return; 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) if (target->GetTypeId() != TYPEID_PLAYER)
return; 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) if (target->GetTypeId() != TYPEID_PLAYER)
return; return;
@@ -1235,7 +1235,7 @@ class npc_ball_of_flame : public CreatureScript
void MoveInLineOfSight(Unit* /*who*/) {} void MoveInLineOfSight(Unit* /*who*/) {}
void MovementInform(uint32 type, uint32 id) void MovementInform(uint32 type, uint32 /*id*/)
{ {
if (type == CHASE_MOTION_TYPE && !_exploded) if (type == CHASE_MOTION_TYPE && !_exploded)
{ {
@@ -1283,7 +1283,7 @@ class npc_ball_of_flame : public CreatureScript
me->DespawnOrUnsummon(1); me->DespawnOrUnsummon(1);
} }
void DamageDealt(Unit* target, uint32& damage, DamageEffectType damageType) void DamageDealt(Unit* target, uint32& damage, DamageEffectType /*damageType*/)
{ {
if (target->GetTypeId() != TYPEID_PLAYER) if (target->GetTypeId() != TYPEID_PLAYER)
return; return;
@@ -186,7 +186,7 @@ class boss_blood_queen_lana_thel : public CreatureScript
_creditBloodQuickening = instance->GetData(DATA_BLOOD_QUICKENING_STATE) == IN_PROGRESS; _creditBloodQuickening = instance->GetData(DATA_BLOOD_QUICKENING_STATE) == IN_PROGRESS;
} }
void JustDied(Unit* killer) void JustDied(Unit* /*killer*/)
{ {
_JustDied(); _JustDied();
Talk(SAY_DEATH); Talk(SAY_DEATH);
@@ -565,7 +565,7 @@ class boss_blood_queen_lana_thel : public CreatureScript
BossAI::EnterEvadeMode(); BossAI::EnterEvadeMode();
} }
bool CanAIAttack(const Unit* target) const bool CanAIAttack(const Unit* /*target*/) const
{ {
return me->IsVisible(); return me->IsVisible();
} }
@@ -303,7 +303,7 @@ class boss_deathbringer_saurfang : public CreatureScript
creature->AI()->DoAction(ACTION_START_OUTRO); creature->AI()->DoAction(ACTION_START_OUTRO);
} }
bool CanAIAttack(const Unit* target) const bool CanAIAttack(const Unit* /*target*/) const
{ {
return _introDone; return _introDone;
} }
@@ -367,7 +367,7 @@ class boss_deathbringer_saurfang : public CreatureScript
instance->HandleGameObject(instance->GetData64(GO_SAURFANG_S_DOOR), false); 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) 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 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(); PreventDefaultAction();
Unit* victim = eventInfo.GetActionTarget(); 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 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(); PreventDefaultAction();
@@ -1639,7 +1639,7 @@ class npc_gunship_boarding_leader : public CreatureScript
{ {
} }
void EnterCombat(Unit* target) void EnterCombat(Unit* /*target*/)
{ {
_events.Reset(); _events.Reset();
_events.ScheduleEvent(EVENT_BLADESTORM, urand(13000, 18000)); _events.ScheduleEvent(EVENT_BLADESTORM, urand(13000, 18000));
@@ -1787,7 +1787,7 @@ class npc_gunship_mage : public CreatureScript
gunship_npc_AI::UpdateAI(diff); 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; return Instance->GetBossState(DATA_ICECROWN_GUNSHIP_BATTLE) == IN_PROGRESS;
} }
@@ -1916,7 +1916,7 @@ class npc_gunship_rocketeer : public CreatureScript
me->_AddCreatureSpellCooldown(spellId, 9000); 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; 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) void UpdateAI(uint32 diff)
{ {
@@ -800,7 +800,7 @@ public:
} }
} }
void EnterCombat(Unit* who) { DoZoneInCombat(); } void EnterCombat(Unit* /*who*/) { DoZoneInCombat(); }
void UpdateAI(uint32 diff) void UpdateAI(uint32 diff)
{ {
@@ -938,7 +938,7 @@ public:
DoMeleeAttackIfReady(); DoMeleeAttackIfReady();
} }
void MoveInLineOfSight(Unit* who) {} void MoveInLineOfSight(Unit* /*who*/) {}
void EnterEvadeMode() {} void EnterEvadeMode() {}
}; };

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