Enable GameObject faction check for worldobject searchers and fix a typo

This commit is contained in:
Rochet2
2015-09-21 21:45:33 +03:00
parent 72d0f8f13a
commit 7ec215b2d7
3 changed files with 47 additions and 16 deletions

View File

@@ -65,6 +65,7 @@ typedef QueryNamedResult ElunaQuery;
class Unit;
class WorldObject;
struct FactionTemplateEntry;
namespace ElunaUtil
{
@@ -101,13 +102,15 @@ namespace ElunaUtil
WorldObject const& GetFocusObject() const;
bool operator()(WorldObject* u);
WorldObject const* i_obj;
uint32 i_hostile; // 0 both, 1 hostile, 2 friendly
uint32 i_entry;
WorldObject const* const i_obj;
Unit const* i_obj_unit;
FactionTemplateEntry const* i_obj_fact;
uint32 const i_hostile; // 0 both, 1 hostile, 2 friendly
uint32 const i_entry;
float i_range;
uint16 i_typeMask;
uint32 i_dead; // 0 both, 1 alive, 2 dead
bool i_nearest;
uint16 const i_typeMask;
uint32 const i_dead; // 0 both, 1 alive, 2 dead
bool const i_nearest;
};
/*