diff options
author | Spp <none@none> | 2010-11-16 14:08:12 +0100 |
---|---|---|
committer | Spp <none@none> | 2010-11-16 14:08:12 +0100 |
commit | addd762c4dbc08e6aac8081e105af48f7decbc0e (patch) | |
tree | ceb7632cca41c3e7575e7dd200e9300e346792fb /src | |
parent | 7abcf9812ead236307e60a2e686e89e5e21c2939 (diff) |
Core: Fix warnings
--HG--
branch : trunk
Diffstat (limited to 'src')
19 files changed, 51 insertions, 51 deletions
diff --git a/src/server/game/AI/CoreAI/GameObjectAI.h b/src/server/game/AI/CoreAI/GameObjectAI.h index 6329d0e1662..ec3802ced37 100644 --- a/src/server/game/AI/CoreAI/GameObjectAI.h +++ b/src/server/game/AI/CoreAI/GameObjectAI.h @@ -41,14 +41,14 @@ class GameObjectAI static int Permissible(const GameObject* go); - virtual bool GossipHello(Player* player) {return false;} - virtual bool GossipSelect(Player* player, uint32 sender, uint32 action) {return false;} + virtual bool GossipHello(Player* /*player*/) {return false;} + virtual bool GossipSelect(Player* /*player*/, uint32 /*sender*/, uint32 /*action*/) {return false;} virtual bool GossipSelectCode(Player* /*player*/, uint32 /*sender*/, uint32 /*action*/, const char* /*code*/) {return false;} - virtual bool QuestAccept(Player* player, Quest const* quest) {return false;} - virtual bool QuestReward(Player* player, Quest const* quest, uint32 opt) {return false;} + virtual bool QuestAccept(Player* /*player*/, Quest const* /*quest*/) {return false;} + virtual bool QuestReward(Player* /*player*/, Quest const* /*quest*/, uint32 /*opt*/) {return false;} uint32 GetDialogStatus(Player* /*player*/) {return 100;} - virtual void Destroyed(Player* player, uint32 eventId) {} - virtual void SetData(uint32 id, uint32 value) {} + virtual void Destroyed(Player* /*player*/, uint32 /*eventId*/) {} + virtual void SetData(uint32 /*id*/, uint32 /*value*/) {} }; class NullGameObjectAI : public GameObjectAI diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index 4fb4cbdcc53..64251a8fa0d 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -35,7 +35,7 @@ SmartAI::SmartAI(Creature *c) : CreatureAI(c) { - // copy script to local (pretection for table reload) + // copy script to local (protection for table reload) mWayPoints = NULL; mEscortState = SMART_ESCORT_NONE; @@ -114,7 +114,7 @@ WayPoint* SmartAI::GetNextWayPoint() return NULL; } -void SmartAI::StartPath(bool run, uint32 path, bool repeat, Unit* invoker) +void SmartAI::StartPath(bool run, uint32 path, bool repeat, Unit* /*invoker*/) { if (me->isInCombat())// no wp movement in combat { @@ -347,7 +347,7 @@ void SmartAI::UpdateAI(const uint32 diff) { if (mFollowArrivedTimer < diff) { - if (Creature* target = me->FindNearestCreature(mFollowArrivedEntry,INTERACTION_DISTANCE, true)) + if (me->FindNearestCreature(mFollowArrivedEntry,INTERACTION_DISTANCE, true)) { if (Player* plr = me->GetPlayer(*me, mFollowGuid)) { @@ -495,7 +495,7 @@ void SmartAI::MoveInLineOfSight(Unit* who) // AttackStart(who); } -bool SmartAI::CanAIAttack(const Unit* who) const +bool SmartAI::CanAIAttack(const Unit* /*who*/) const { if (me->GetReactState() == REACT_PASSIVE) return false; @@ -649,7 +649,7 @@ void SmartAI::SummonedCreatureDespawn(Creature* unit) GetScript()->ProcessEventsFor(SMART_EVENT_SUMMON_DESPAWNED, unit); } -void SmartAI::UpdateAIWhileCharmed(const uint32 diff) +void SmartAI::UpdateAIWhileCharmed(const uint32 /*diff*/) { } @@ -676,11 +676,11 @@ void SmartAI::OnCharmed(bool apply) GetScript()->ProcessEventsFor(SMART_EVENT_CHARMED, NULL, 0, 0, apply); } -void SmartAI::DoAction(const int32 param) +void SmartAI::DoAction(const int32 /*param*/) { } -uint32 SmartAI::GetData(uint32 id) +uint32 SmartAI::GetData(uint32 /*id*/) { return 0; } @@ -690,11 +690,11 @@ void SmartAI::SetData(uint32 id, uint32 value) GetScript()->ProcessEventsFor(SMART_EVENT_DATA_SET, NULL, id, value); } -void SmartAI::SetGUID(const uint64& guid, int32 id) +void SmartAI::SetGUID(const uint64& /*guid*/, int32 /*id*/) { } -uint64 SmartAI::GetGUID(int32 id) +uint64 SmartAI::GetGUID(int32 /*id*/) { return 0; } @@ -731,7 +731,7 @@ void SmartAI::sGossipSelect(Player* player, uint32 sender, uint32 action) GetScript()->ProcessEventsFor(SMART_EVENT_GOSSIP_SELECT, player, sender, action); } -void SmartAI::sGossipSelectCode(Player* player, uint32 sender, uint32 action, const char* code) +void SmartAI::sGossipSelectCode(Player* /*player*/, uint32 /*sender*/, uint32 /*action*/, const char* /*code*/) { } @@ -898,4 +898,4 @@ class SmartTrigger : public AreaTriggerScript void AddSC_SmartSCripts() { new SmartTrigger(); -}
\ No newline at end of file +} diff --git a/src/server/game/AI/SmartScripts/SmartAI.h b/src/server/game/AI/SmartScripts/SmartAI.h index 6bc49b24f9f..ca07cada882 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.h +++ b/src/server/game/AI/SmartScripts/SmartAI.h @@ -229,7 +229,7 @@ class SmartAI : public CreatureAI class SmartGameObjectAI : public GameObjectAI { public: - SmartGameObjectAI(GameObject *g) : go(g), GameObjectAI(g) {} + SmartGameObjectAI(GameObject *g) : GameObjectAI(g), go(g) {} ~SmartGameObjectAI() {} void UpdateAI(const uint32 diff); diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp index 700eb6c311a..3c404f0651c 100644 --- a/src/server/game/AI/SmartScripts/SmartScript.cpp +++ b/src/server/game/AI/SmartScripts/SmartScript.cpp @@ -88,10 +88,11 @@ void SmartScript::ProcessEventsFor(SMART_EVENT e, Unit* unit, uint32 var0, uint3 } for (SmartAIEventList::iterator i = mEvents.begin(); i != mEvents.end(); ++i) { - if ((*i).GetEventType() == SMART_EVENT_LINK)//special handling + SMART_EVENT eventType = SMART_EVENT((*i).GetEventType()); + if (eventType == SMART_EVENT_LINK)//special handling continue; - if ((*i).GetEventType() == e/* && (!(*i).event.event_phase_mask || IsInPhase((*i).event.event_phase_mask)) && !((*i).event.event_flags & SMART_EVENT_FLAG_NOT_REPEATABLE && (*i).runOnce)*/) + if (eventType == e/* && (!(*i).event.event_phase_mask || IsInPhase((*i).event.event_phase_mask)) && !((*i).event.event_flags & SMART_EVENT_FLAG_NOT_REPEATABLE && (*i).runOnce)*/) ProcessEvent(*i, unit, var0, var1, bvar, spell, gob); } } @@ -808,7 +809,6 @@ void SmartScript::ProcessAction(SmartScriptHolder &e, Unit* unit, uint32 var0, u { ObjectList* targets = GetTargets(e, unit); if (!targets) return; - uint32 map = e.action.teleport.mapID; for (ObjectList::const_iterator itr = targets->begin(); itr != targets->end(); itr++) { if(!IsPlayer((*itr))) continue; @@ -2241,4 +2241,4 @@ void SmartScript::SetScript9(SmartScriptHolder &e, uint32 entry) mResumeActionList = e.action.timedActionList.dontResume ? false : true; InitTimer((*i)); } -}
\ No newline at end of file +} diff --git a/src/server/game/AI/SmartScripts/SmartScript.h b/src/server/game/AI/SmartScripts/SmartScript.h index 0384afc4a44..74b3a4f4d33 100644 --- a/src/server/game/AI/SmartScripts/SmartScript.h +++ b/src/server/game/AI/SmartScripts/SmartScript.h @@ -225,7 +225,7 @@ class SmartScript { for (SmartAIEventList::iterator i = mStoredEvents.begin(); i != mStoredEvents.end(); ++i) { - if (i->event_id = id) + if (i->event_id == id) { mStoredEvents.erase(i); return; diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp index a4745f34555..836d0f074aa 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp @@ -756,7 +756,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder &e) case SMART_ACTION_CALL_RANDOM_RANGE_TIMED_ACTIONLIST: break; default: - sLog.outErrorDb("SmartAIMgr: Not handled action_type(%u), Entry %d SourceType %u Event %u, skipped.", e.GetActionType(), e.GetEventType(), e.entryOrGuid, e.GetScriptType(), e.event_id); + sLog.outErrorDb("SmartAIMgr: Not handled action_type(%u), event_type(%u), Entry %d SourceType %u Event %u, skipped.", e.GetActionType(), e.GetEventType(), e.entryOrGuid, e.GetScriptType(), e.event_id); return false; } diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.h b/src/server/game/AI/SmartScripts/SmartScriptMgr.h index 755f7e946f1..98f7f73483a 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.h +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.h @@ -1262,16 +1262,16 @@ class SmartAIMgr } return true; } - inline bool IsConditionValid(SmartScriptHolder e, uint32 t, uint32 v1, uint32 v2, uint32 v3) + inline bool IsConditionValid(SmartScriptHolder e, int32 t, int32 v1, int32 v2, int32 v3) { bool error = false; if (t > 0 && v1 >= 0 && v2 >= 0 && v3 >= 0) { Condition cond; cond.mConditionType = ConditionType(t); - cond.mConditionValue1 = v1; - cond.mConditionValue2 = v2; - cond.mConditionValue3 = v3; + cond.mConditionValue1 = uint32(v1); + cond.mConditionValue2 = uint32(v2); + cond.mConditionValue3 = uint32(v3); if (!sConditionMgr.isConditionTypeValid(&cond)) error = true; } diff --git a/src/server/game/Combat/HostileRefManager.cpp b/src/server/game/Combat/HostileRefManager.cpp index 6af228c9117..290271363b6 100755 --- a/src/server/game/Combat/HostileRefManager.cpp +++ b/src/server/game/Combat/HostileRefManager.cpp @@ -193,7 +193,7 @@ void HostileRefManager::UpdateVisibility() HostileReference* nextRef = ref->next(); if (!ref->getSource()->getOwner()->canSeeOrDetect(getOwner())) { - HostileReference* nextRef = ref->next(); + nextRef = ref->next(); ref->removeReference(); delete ref; } diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 8b5877e2f0b..d9b1f59c0ee 100755 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -97,10 +97,10 @@ static bool procPrepared = InitTriggerAuraData(); #pragma warning(disable:4355) #endif Unit::Unit(): WorldObject(), -m_movedPlayer(NULL), IsAIEnabled(false), NeedChangeAI(false), +m_movedPlayer(NULL), m_lastSanctuaryTime(0), IsAIEnabled(false), NeedChangeAI(false), m_ControlledByPlayer(false), i_AI(NULL), i_disabledAI(NULL), m_procDeep(0), m_removedAurasCount(0), i_motionMaster(this), m_ThreatManager(this), m_vehicle(NULL), -m_vehicleKit(NULL), m_unitTypeMask(UNIT_MASK_NONE), m_HostileRefManager(this), m_lastSanctuaryTime(0) +m_vehicleKit(NULL), m_unitTypeMask(UNIT_MASK_NONE), m_HostileRefManager(this) { #ifdef _MSC_VER #pragma warning(default:4355) diff --git a/src/server/game/Groups/Group.cpp b/src/server/game/Groups/Group.cpp index 24fe23f00be..2d6477fbf5a 100755 --- a/src/server/game/Groups/Group.cpp +++ b/src/server/game/Groups/Group.cpp @@ -1147,9 +1147,9 @@ void Group::UpdatePlayerOutOfRange(Player* pPlayer) for (GroupReference *itr = GetFirstMember(); itr != NULL; itr = itr->next()) { - if (player = itr->getSource()) - if (!player->IsWithinDist(pPlayer, player->GetSightRange(), false)) - player->GetSession()->SendPacket(&data); + player = itr->getSource(); + if (player && !player->IsWithinDist(pPlayer, player->GetSightRange(), false)) + player->GetSession()->SendPacket(&data); } } diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index ce5c15a37c8..9de681f4443 100755 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -4472,7 +4472,7 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex) unitTarget->GetPosition(x, y, z); uint32 areaFlag = unitTarget->GetBaseMap()->GetAreaFlag(x, y, z); AreaTableEntry const *pArea = sAreaStore.LookupEntry(areaFlag); - if (canFly && (pArea && pArea->flags & AREA_FLAG_NO_FLY_ZONE) || !pArea) + if (!pArea || (canFly && (pArea->flags & AREA_FLAG_NO_FLY_ZONE))) canFly = false; switch(unitTarget->ToPlayer()->GetBaseSkillValue(SKILL_RIDING)) @@ -4517,7 +4517,7 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex) unitTarget->GetPosition(x, y, z); uint32 areaFlag = unitTarget->GetBaseMap()->GetAreaFlag(x, y, z); AreaTableEntry const *pArea = sAreaStore.LookupEntry(areaFlag); - if (canFly && (pArea && pArea->flags & AREA_FLAG_NO_FLY_ZONE) || !pArea) + if (!pArea || (canFly && (pArea->flags & AREA_FLAG_NO_FLY_ZONE))) canFly = false; switch(unitTarget->ToPlayer()->GetBaseSkillValue(SKILL_RIDING)) @@ -4842,7 +4842,7 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex) unitTarget->GetPosition(x, y, z); uint32 areaFlag = unitTarget->GetBaseMap()->GetAreaFlag(x, y, z); AreaTableEntry const *pArea = sAreaStore.LookupEntry(areaFlag); - if (canFly && (pArea && pArea->flags & AREA_FLAG_NO_FLY_ZONE) || !pArea) + if (!pArea || (canFly && (pArea->flags & AREA_FLAG_NO_FLY_ZONE))) canFly = false; switch(unitTarget->ToPlayer()->GetBaseSkillValue(SKILL_RIDING)) @@ -4888,7 +4888,7 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex) unitTarget->GetPosition(x, y, z); uint32 areaFlag = unitTarget->GetBaseMap()->GetAreaFlag(x, y, z); AreaTableEntry const *pArea = sAreaStore.LookupEntry(areaFlag); - if (canFly && (pArea && pArea->flags & AREA_FLAG_NO_FLY_ZONE) || !pArea) + if (!pArea || (canFly && (pArea->flags & AREA_FLAG_NO_FLY_ZONE))) canFly = false; switch(unitTarget->ToPlayer()->GetBaseSkillValue(SKILL_RIDING)) @@ -4951,7 +4951,7 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex) unitTarget->GetPosition(x, y, z); uint32 areaFlag = unitTarget->GetBaseMap()->GetAreaFlag(x, y, z); AreaTableEntry const *pArea = sAreaStore.LookupEntry(areaFlag); - if (canFly && (pArea && pArea->flags & AREA_FLAG_NO_FLY_ZONE) || !pArea) + if (!pArea || (canFly && (pArea->flags & AREA_FLAG_NO_FLY_ZONE))) canFly = false; switch(unitTarget->ToPlayer()->GetBaseSkillValue(SKILL_RIDING)) diff --git a/src/server/scripts/Commands/cs_debug.cpp b/src/server/scripts/Commands/cs_debug.cpp index fcfecac8685..2a8ba7934e4 100644 --- a/src/server/scripts/Commands/cs_debug.cpp +++ b/src/server/scripts/Commands/cs_debug.cpp @@ -721,13 +721,13 @@ class debug_commandscript : public CommandScript return true; } - static bool HandleDebugBattlegroundCommand(ChatHandler* handler, const char* /*args*/) + static bool HandleDebugBattlegroundCommand(ChatHandler* /*handler*/, const char* /*args*/) { sBattlegroundMgr.ToggleTesting(); return true; } - static bool HandleDebugArenaCommand(ChatHandler* handler, const char* /*args*/) + static bool HandleDebugArenaCommand(ChatHandler* /*handler*/, const char* /*args*/) { sBattlegroundMgr.ToggleArenaTesting(); return true; diff --git a/src/server/scripts/Commands/cs_npc.cpp b/src/server/scripts/Commands/cs_npc.cpp index 5da54bc72fc..86c22807828 100644 --- a/src/server/scripts/Commands/cs_npc.cpp +++ b/src/server/scripts/Commands/cs_npc.cpp @@ -1271,7 +1271,7 @@ class npc_commandscript : public CommandScript } //TODO: NpcCommands that needs to be fixed : - static bool HandleNpcAddWeaponCommand(ChatHandler* handler, const char* /*args*/) + static bool HandleNpcAddWeaponCommand(ChatHandler* /*handler*/, const char* /*args*/) { /*if (!*args) return false; @@ -1339,7 +1339,7 @@ class npc_commandscript : public CommandScript return true; } - static bool HandleNpcSetNameCommand(ChatHandler* handler, const char* /*args*/) + static bool HandleNpcSetNameCommand(ChatHandler* /*handler*/, const char* /*args*/) { /* Temp. disabled if (!*args) @@ -1386,7 +1386,7 @@ class npc_commandscript : public CommandScript return true; } - static bool HandleNpcSetSubNameCommand(ChatHandler* handler, const char* /*args*/) + static bool HandleNpcSetSubNameCommand(ChatHandler* /*handler*/, const char* /*args*/) { /* Temp. disabled diff --git a/src/server/scripts/Kalimdor/dustwallow_marsh.cpp b/src/server/scripts/Kalimdor/dustwallow_marsh.cpp index 6c552a4434b..cd119522d51 100644 --- a/src/server/scripts/Kalimdor/dustwallow_marsh.cpp +++ b/src/server/scripts/Kalimdor/dustwallow_marsh.cpp @@ -180,7 +180,7 @@ public: return true; } - bool OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction) + bool OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction) { pPlayer->PlayerTalkClass->ClearMenus(); @@ -278,7 +278,7 @@ public: return true; } - bool OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction) + bool OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction) { pPlayer->PlayerTalkClass->ClearMenus(); diff --git a/src/server/scripts/Northrend/FrozenHalls/ForgeOfSouls/boss_bronjahm.cpp b/src/server/scripts/Northrend/FrozenHalls/ForgeOfSouls/boss_bronjahm.cpp index eebd1ba8cdd..512db1273cc 100644 --- a/src/server/scripts/Northrend/FrozenHalls/ForgeOfSouls/boss_bronjahm.cpp +++ b/src/server/scripts/Northrend/FrozenHalls/ForgeOfSouls/boss_bronjahm.cpp @@ -106,7 +106,7 @@ class boss_bronjahm : public CreatureScript DoScriptText(RAND(SAY_SLAY_1, SAY_SLAY_2), me); } - void DamageTaken(Unit* /*attacker*/, uint32& damage) + void DamageTaken(Unit* /*attacker*/, uint32& /*damage*/) { if (events.GetPhaseMask() & (1 << PHASE_1) && !HealthAbovePct(30)) { diff --git a/src/server/scripts/Northrend/FrozenHalls/PitOfSaron/boss_scourgelord_tyrannus.cpp b/src/server/scripts/Northrend/FrozenHalls/PitOfSaron/boss_scourgelord_tyrannus.cpp index 0324e4a28e2..55d788d1a56 100644 --- a/src/server/scripts/Northrend/FrozenHalls/PitOfSaron/boss_scourgelord_tyrannus.cpp +++ b/src/server/scripts/Northrend/FrozenHalls/PitOfSaron/boss_scourgelord_tyrannus.cpp @@ -299,7 +299,7 @@ class player_overlord_brandAI : public PlayerAI me->CastCustomSpell(SPELL_OVERLORD_BRAND_HEAL, SPELLVALUE_BASE_POINT0, int32(addHealth*5.5f), tyrannus, true, NULL, NULL, tyrannus->GetGUID()); } - void UpdateAI(const uint32 diff) { } + void UpdateAI(const uint32 /*diff*/) { } private: Creature* tyrannus; diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_blood_prince_council.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_blood_prince_council.cpp index 82498cd85a9..b551ba0b302 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/boss_blood_prince_council.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_blood_prince_council.cpp @@ -202,7 +202,7 @@ class boss_blood_council_controller : public CreatureScript instance->SetBossState(DATA_BLOOD_PRINCE_COUNCIL, NOT_STARTED); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { instance->SetBossState(DATA_BLOOD_PRINCE_COUNCIL, IN_PROGRESS); diff --git a/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.h b/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.h index 5878b702e2f..c29ffb00f48 100755 --- a/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.h +++ b/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.h @@ -18,7 +18,7 @@ #ifndef DEF_ICECROWN_CITADEL_H #define DEF_ICECROWN_CITADEL_H -static const char* ICCScriptName = "instance_icecrown_citadel"; +#define ICCScriptName "instance_icecrown_citadel" enum eSharedSpells { diff --git a/src/server/scripts/Spells/spell_generic.cpp b/src/server/scripts/Spells/spell_generic.cpp index 820a36f5481..188a859422f 100644 --- a/src/server/scripts/Spells/spell_generic.cpp +++ b/src/server/scripts/Spells/spell_generic.cpp @@ -499,7 +499,7 @@ class spell_gen_animal_blood : public SpellScriptLoader return true; } - void OnRemove(AuraEffect const* /*aurEff*/, AuraApplication const* aurApp, AuraEffectHandleModes /*mode*/) + void OnRemove(AuraEffect const* /*aurEff*/, AuraApplication const* /*aurApp*/, AuraEffectHandleModes /*mode*/) { if (GetUnitOwner()->IsInWater()) GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_SPAWN_BLOOD_POOL, true); |