mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 08:28:57 +01:00
Core/Misc: Fixed nopch and clang 6.0 warnings
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "Packet.h"
|
||||
#include "DBCEnums.h"
|
||||
#include "ItemPacketsCommon.h"
|
||||
#include "ObjectGuid.h"
|
||||
#include "SharedDefines.h"
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#define SystemPackets_h__
|
||||
|
||||
#include "Packet.h"
|
||||
#include "ObjectGuid.h"
|
||||
#include "Optional.h"
|
||||
|
||||
namespace WorldPackets
|
||||
|
||||
@@ -1626,8 +1626,6 @@ class FlameLeviathanPursuedTargetSelector
|
||||
};
|
||||
|
||||
public:
|
||||
explicit FlameLeviathanPursuedTargetSelector(Unit* unit) : _me(unit) { };
|
||||
|
||||
bool operator()(WorldObject* target) const
|
||||
{
|
||||
//! No players, only vehicles. Pursue is never cast on players.
|
||||
@@ -1656,9 +1654,6 @@ class FlameLeviathanPursuedTargetSelector
|
||||
|
||||
return !playerFound;
|
||||
}
|
||||
|
||||
private:
|
||||
Unit const* _me;
|
||||
};
|
||||
|
||||
class spell_pursue : public SpellScriptLoader
|
||||
@@ -1679,7 +1674,7 @@ class spell_pursue : public SpellScriptLoader
|
||||
private:
|
||||
void FilterTargets(std::list<WorldObject*>& targets)
|
||||
{
|
||||
targets.remove_if(FlameLeviathanPursuedTargetSelector(GetCaster()));
|
||||
targets.remove_if(FlameLeviathanPursuedTargetSelector());
|
||||
if (!targets.empty())
|
||||
{
|
||||
//! In the end, only one target should be selected
|
||||
|
||||
Reference in New Issue
Block a user