This commit is contained in:
aozhiwei 2020-07-23 17:10:45 +08:00
parent b41e51cf0b
commit 7f6320ee49

View File

@ -377,6 +377,9 @@ Human* ZombieAI::GetTarget()
if (myself->team_id == hum->team_id) {
return;
}
if (myself->GetRace() == hum->GetRace()) {
return;
}
if (target) {
if (myself->GetPos().ManhattanDistance(target->GetPos()) >
myself->GetPos().ManhattanDistance(hum->GetPos())) {