Beispiel #1
0
 public override void AfterAttacked(Iunit bywho)
 {
     base.AfterAttacked(bywho);
     if (this.DistanceTo((Abstraceunit)bywho, false) <= 1)
     {
         int dmg_buff = -(_att_dmg + _att_dmg_mod) / 2;
         _att_dmg_mod += dmg_buff;
         LOGS.Add(String.Format("{0} counterattacked {1} for {2} DMG!", this.NameFull, bywho.NameFull, CurrentDamage));
         if (CurrentDamage > 10 && !bywho.isDead)
         {
             this.Attack((Abstraceunit)bywho);
         }
         _att_dmg -= dmg_buff;
     }
 }
 public virtual void AfterAttacked(Iunit bywho)
 {
     LOGS.Add(String.Format("{0} was already attacked by {1}", this.NameFull, bywho.NameFull));
 }
 public virtual void OnKillUnit(Iunit who)
 {
     LOGS.Add(String.Format("{0} fragged {1}", this.NameFull, who.NameFull));
 }
 public virtual void OnAttacking(Iunit who)
 {
     LOGS.Add(String.Format("{0} will attack {1} in a second", this.NameFull, who.NameFull));
 }