mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-14 09:29:09 +00:00
Improve party member to heal and has aura to dispel check performance
This commit is contained in:
@@ -12,11 +12,11 @@ Unit* PartyMemberValue::FindPartyMember(std::vector<Player*>* party, FindPlayerP
|
||||
{
|
||||
for (Player* player : *party)
|
||||
{
|
||||
if (Check(player) && predicate.Check(player))
|
||||
if (predicate.Check(player) && Check(player))
|
||||
return player;
|
||||
|
||||
if (Pet* pet = player->GetPet())
|
||||
if (Check(pet) && predicate.Check(pet))
|
||||
if (predicate.Check(pet) && Check(pet))
|
||||
return pet;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user