Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static bool Enemies() {
- msg = "Looking for enemies.";
- var units = Unit.Get().Where(x =>
- x.Type == UnitType.Monster
- && GetDistance(moves[move], new Point((int)x.X, (int)x.Y)) < 50.0f
- && x.ActorId != SNOActorId.DH_Companion_Ferret
- && x.ActorId != SNOActorId.a3_Battlefield_demonic_forge
- ).FirstOrDefault();
- if (units != null) {
- msg = "Attacking: " + units.Name;
- MoveTo(units);
- Attack(units);
- return false;
- } else return true;
- }
Add Comment
Please, Sign In to add comment