Esempio n. 1
0
 public override async Task <bool> OnInTrouble(Message sender, EventData e)
 {
     if (e.IsFollowerEvent && !Data.Monsters.Any(m => m.Distance <= 80f) && sender.IsInSameWorld && !RiftHelper.IsInGreaterRift)
     {
         Log.Info("My minion needs help! Teleporting to {0}. Distance={1}", sender.HeroAlias, sender.Distance);
         await Coordination.TeleportToPlayer(sender);
     }
     return(false);
 }