Chore: Remove unused #if statement (TrinityCore, Mangos, AzerothCore, TBC, Classic, Mists, Cata) (#217)
This commit is contained in:
@@ -10,9 +10,6 @@
|
||||
#include "Unit.h"
|
||||
#include "GameObject.h"
|
||||
#include "DBCStores.h"
|
||||
#ifdef MANGOS
|
||||
#include "Timer.h"
|
||||
#endif
|
||||
|
||||
uint32 ElunaUtil::GetCurrTime()
|
||||
{
|
||||
@@ -72,26 +69,17 @@ bool ElunaUtil::WorldObjectInRangeCheck::operator()(WorldObject* u)
|
||||
target = go->GetOwner();
|
||||
if (target)
|
||||
{
|
||||
#ifdef CMANGOS
|
||||
if (i_dead && (i_dead == 1) != target->isAlive())
|
||||
return false;
|
||||
#else
|
||||
if (i_dead && (i_dead == 1) != target->IsAlive())
|
||||
return false;
|
||||
#endif
|
||||
|
||||
if (i_hostile)
|
||||
{
|
||||
if (!i_obj_unit)
|
||||
{
|
||||
if (i_obj_fact)
|
||||
{
|
||||
#if defined TRINITY || AZEROTHCORE
|
||||
if ((i_obj_fact->IsHostileTo(*target->GetFactionTemplateEntry())) != (i_hostile == 1))
|
||||
return false;
|
||||
#else
|
||||
if ((i_obj_fact->IsHostileTo(*target->getFactionTemplateEntry())) != (i_hostile == 1))
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
else if (i_hostile == 1)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user