miscs: teleport & grind target

This commit is contained in:
Yunfan Li
2023-07-30 16:41:01 +08:00
parent 252b2f259c
commit 4a5efe6642
3 changed files with 24 additions and 14 deletions

View File

@@ -53,7 +53,11 @@ Unit* GrindTargetValue::FindTargetForGrinding(uint32 assistCount)
if (!unit)
continue;
// if (unit->HasUnitFlag(UNIT_FLAG_IMMUNE_TO_PC | UNIT_FLAG_NOT_SELECTABLE)) {
// continue;
// }
if (!bot->IsHostileTo(unit) && unit->GetNpcFlags() != UNIT_NPC_FLAG_NONE) {
continue;
}