Exemplo n.º 1
0
        private void Pulse()
        {
            if (TimeFinish < DateTime.Now)
            {
                Active = false;
                End();
                Cooldown = new AegisHealPodCooldown(this);
                Object beacon;
                Beacon.Spacemap.Objects.TryRemove(Beacon.Id, out beacon);
                return;
            }

            TargetIds.Clear();
            foreach (var entity in Beacon.Spacemap.Entities.Where(x =>
                                                                  x.Value.Position.DistanceTo(Beacon.Position) < 300))
            {
                if (Player.Group != null && Player.Group.Members.ContainsKey(entity.Key) || Player == entity.Value)
                {
                    TargetIds.Add(entity.Key);
                    entity.Value.Controller.Heal.Execute(15000, Player.Id);
                }
            }

            ShowEffect();
        }
Exemplo n.º 2
0
 public override void execute()
 {
     if (!Enabled)
     {
         return;
     }
     Active = true;
     TargetIds.Add(Player.Id);
     TimeFinish = DateTime.Now.AddMinutes(2);
     Start();
 }
 public override void execute()
 {
     if (!Enabled)
     {
         return;
     }
     Active    = true;
     Selection = Player.SelectedCharacter;
     if (Selection != null && (Selection.FactionId == Player.FactionId || Player.Clan.GetRelation(Selection.Clan) == 1 || Player.Group != null && Player.Group.Members.ContainsKey(Selection.Id)))
     {
         BeamStrenght = 2;
         TargetIds.Add(Selection.Id);
     }
     Start();
     TimeFinish = DateTime.Now.AddSeconds(7);
 }
 public override void execute()
 {
     if (!Enabled)
     {
         return;
     }
     Active = true;
     if (Player.Group != null)
     {
         foreach (var member in Player.Group.Members.Where(x => x.Value.Spacemap == Player.Spacemap))
         {
             TargetIds.Add(member.Key);
         }
     }
     TargetIds.Add(Player.Id);
     Start();
     Heal();
 }