Core/AI: Added new method for search friendly targets with certain entry and hp pct below a value (#18310)

(cherry picked from commit e7024f8a4c514eb4d8466383f8b5367ad7bab630)
This commit is contained in:
Keader
2018-03-11 16:42:26 +01:00
committed by DoctorKraft
parent 203ec72ecc
commit e65ddccd1b
3 changed files with 35 additions and 48 deletions
@@ -223,6 +223,9 @@ struct TC_GAME_API ScriptedAI : public CreatureAI
//Returns friendly unit with the most amount of hp missing from max hp
Unit* DoSelectLowestHpFriendly(float range, uint32 minHPDiff = 1);
//Returns friendly unit with hp pct below specified and with specified entry
Unit* DoSelectBelowHpPctFriendlyWithEntry(uint32 entry, float range, uint8 hpPct = 1, bool excludeSelf = true);
//Returns a list of friendly CC'd units within range
std::list<Creature*> DoFindFriendlyCC(float range);