From b1f8e0b2f0fc676a2d2da06e4ca9c50d50cebb73 Mon Sep 17 00:00:00 2001 From: TrullyONE Date: Sat, 3 Jan 2009 00:51:06 +0200 Subject: *New script command 17 implemented: SCRIPTCOMMAND_CALL_SCRIPT_TO_UNIT --HG-- branch : trunk --- src/game/GridNotifiers.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/game/GridNotifiers.h') diff --git a/src/game/GridNotifiers.h b/src/game/GridNotifiers.h index 5dd863493a8..b00bd33bd24 100644 --- a/src/game/GridNotifiers.h +++ b/src/game/GridNotifiers.h @@ -595,6 +595,19 @@ namespace Trinity Unit const* i_funit; float i_range; }; + + class CreatureWithDbGUIDCheck + { + public: + CreatureWithDbGUIDCheck(WorldObject const* obj, uint32 lowguid) : i_obj(obj), i_lowguid(lowguid) {} + bool operator()(Creature* u) + { + return u->GetDBTableGUIDLow() == i_lowguid; + } + private: + WorldObject const* i_obj; + uint32 i_lowguid; + }; class AnyFriendlyUnitInObjectRangeCheck { -- cgit v1.2.3