1
This commit is contained in:
parent
a0e26e3dab
commit
bc1d9d6141
@ -551,6 +551,9 @@ Creature* AndroidAI::GetTarget()
|
|||||||
if (hum->HasBuffEffect(kBET_Camouflage)) {
|
if (hum->HasBuffEffect(kBET_Camouflage)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (hum->HasBuffEffect(kBET_Jump)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (target) {
|
if (target) {
|
||||||
if (myself->GetPos().ManhattanDistance(target->GetPos()) >
|
if (myself->GetPos().ManhattanDistance(target->GetPos()) >
|
||||||
myself->GetPos().ManhattanDistance(hum->GetPos())) {
|
myself->GetPos().ManhattanDistance(hum->GetPos())) {
|
||||||
|
@ -386,6 +386,12 @@ Creature* HeroAI::GetTarget()
|
|||||||
(
|
(
|
||||||
[myself, &target] (Creature* hum, bool& stop)
|
[myself, &target] (Creature* hum, bool& stop)
|
||||||
{
|
{
|
||||||
|
if (hum->HasBuffEffect(kBET_Camouflage)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (hum->HasBuffEffect(kBET_Jump)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (target) {
|
if (target) {
|
||||||
if (myself->GetPos().ManhattanDistance(target->GetPos()) >
|
if (myself->GetPos().ManhattanDistance(target->GetPos()) >
|
||||||
myself->GetPos().ManhattanDistance(hum->GetPos())) {
|
myself->GetPos().ManhattanDistance(hum->GetPos())) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user