*Some modifications of FindCreature and FindGameobject functions.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-01-01 23:42:11 -06:00
parent 363bc3f0f0
commit 7422c2b9f6
3 changed files with 17 additions and 48 deletions
+2 -2
View File
@@ -149,10 +149,10 @@ struct TRINITY_DLL_DECL ScriptedAI : public CreatureAI
void DoTeleportAll(float x, float y, float z, float o);
//Get a single creature of given entry
Unit* FindCreature(uint32 entry, uint32 range, uint32 district = ALL_DISTRICT);
Unit* FindCreature(uint32 entry, float range);
//Get a single gameobject of given entry
GameObject* FindGameObject(uint32 entry, uint32 district = ALL_DISTRICT);
GameObject* FindGameObject(uint32 entry, float range);
//Returns friendly unit with the most amount of hp missing from max hp
Unit* DoSelectLowestHpFriendly(float range, uint32 MinHPDiff = 1);