Additional AutoPlayTaskManager GeoEngine can see target check.
Thanks to petryxa.
This commit is contained in:
parent
39fce1ade4
commit
7e3dd71d77
@ -101,6 +101,13 @@ public class AutoPlayTaskManager
|
||||
{
|
||||
if (creature.isAutoAttackable(player))
|
||||
{
|
||||
// GeoEngine can see target check.
|
||||
if (!GeoEngine.getInstance().canSeeTarget(player, creature))
|
||||
{
|
||||
player.setTarget(null);
|
||||
continue PLAY;
|
||||
}
|
||||
|
||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, creature);
|
||||
}
|
||||
}
|
||||
|
@ -101,6 +101,13 @@ public class AutoPlayTaskManager
|
||||
{
|
||||
if (creature.isAutoAttackable(player))
|
||||
{
|
||||
// GeoEngine can see target check.
|
||||
if (!GeoEngine.getInstance().canSeeTarget(player, creature))
|
||||
{
|
||||
player.setTarget(null);
|
||||
continue PLAY;
|
||||
}
|
||||
|
||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, creature);
|
||||
}
|
||||
}
|
||||
|
@ -101,6 +101,13 @@ public class AutoPlayTaskManager
|
||||
{
|
||||
if (creature.isAutoAttackable(player))
|
||||
{
|
||||
// GeoEngine can see target check.
|
||||
if (!GeoEngine.getInstance().canSeeTarget(player, creature))
|
||||
{
|
||||
player.setTarget(null);
|
||||
continue PLAY;
|
||||
}
|
||||
|
||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, creature);
|
||||
}
|
||||
}
|
||||
|
@ -101,6 +101,13 @@ public class AutoPlayTaskManager
|
||||
{
|
||||
if (creature.isAutoAttackable(player))
|
||||
{
|
||||
// GeoEngine can see target check.
|
||||
if (!GeoEngine.getInstance().canSeeTarget(player, creature))
|
||||
{
|
||||
player.setTarget(null);
|
||||
continue PLAY;
|
||||
}
|
||||
|
||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, creature);
|
||||
}
|
||||
}
|
||||
|
@ -101,6 +101,13 @@ public class AutoPlayTaskManager
|
||||
{
|
||||
if (creature.isAutoAttackable(player))
|
||||
{
|
||||
// GeoEngine can see target check.
|
||||
if (!GeoEngine.getInstance().canSeeTarget(player, creature))
|
||||
{
|
||||
player.setTarget(null);
|
||||
continue PLAY;
|
||||
}
|
||||
|
||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, creature);
|
||||
}
|
||||
}
|
||||
|
@ -101,6 +101,13 @@ public class AutoPlayTaskManager
|
||||
{
|
||||
if (creature.isAutoAttackable(player))
|
||||
{
|
||||
// GeoEngine can see target check.
|
||||
if (!GeoEngine.getInstance().canSeeTarget(player, creature))
|
||||
{
|
||||
player.setTarget(null);
|
||||
continue PLAY;
|
||||
}
|
||||
|
||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, creature);
|
||||
}
|
||||
}
|
||||
|
@ -101,6 +101,13 @@ public class AutoPlayTaskManager
|
||||
{
|
||||
if (creature.isAutoAttackable(player))
|
||||
{
|
||||
// GeoEngine can see target check.
|
||||
if (!GeoEngine.getInstance().canSeeTarget(player, creature))
|
||||
{
|
||||
player.setTarget(null);
|
||||
continue PLAY;
|
||||
}
|
||||
|
||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, creature);
|
||||
}
|
||||
}
|
||||
|
@ -102,6 +102,13 @@ public class AutoPlayTaskManager
|
||||
{
|
||||
if (creature.isAutoAttackable(player))
|
||||
{
|
||||
// GeoEngine can see target check.
|
||||
if (!GeoEngine.getInstance().canSeeTarget(player, creature))
|
||||
{
|
||||
player.setTarget(null);
|
||||
continue PLAY;
|
||||
}
|
||||
|
||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, creature);
|
||||
}
|
||||
}
|
||||
|
@ -102,6 +102,13 @@ public class AutoPlayTaskManager
|
||||
{
|
||||
if (creature.isAutoAttackable(player))
|
||||
{
|
||||
// GeoEngine can see target check.
|
||||
if (!GeoEngine.getInstance().canSeeTarget(player, creature))
|
||||
{
|
||||
player.setTarget(null);
|
||||
continue PLAY;
|
||||
}
|
||||
|
||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, creature);
|
||||
}
|
||||
}
|
||||
|
@ -102,6 +102,13 @@ public class AutoPlayTaskManager
|
||||
{
|
||||
if (creature.isAutoAttackable(player))
|
||||
{
|
||||
// GeoEngine can see target check.
|
||||
if (!GeoEngine.getInstance().canSeeTarget(player, creature))
|
||||
{
|
||||
player.setTarget(null);
|
||||
continue PLAY;
|
||||
}
|
||||
|
||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, creature);
|
||||
}
|
||||
}
|
||||
|
@ -102,6 +102,13 @@ public class AutoPlayTaskManager
|
||||
{
|
||||
if (creature.isAutoAttackable(player))
|
||||
{
|
||||
// GeoEngine can see target check.
|
||||
if (!GeoEngine.getInstance().canSeeTarget(player, creature))
|
||||
{
|
||||
player.setTarget(null);
|
||||
continue PLAY;
|
||||
}
|
||||
|
||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, creature);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user