//attack to warriors public virtual void attackTo(Warriors they) { if (CDTime.isCoolDown() || they.size() == 0) { return; } if (this.distance(they.frontLine()) <= this.attackDistance) { changeStatusTo((int)Status.attack); they.frontGroup()[0].beAttackFrom(this); CDTime.record(); } }
public override void attackTo(Warriors they) { if (CDTime.isCoolDown() || they.size() == 0) { return; } if (this.distance(they.frontLine()) <= this.attackDistance) { img.Image = myRealStatus[(int)Status.attack]; attackGroup(they.frontGroup()); CDTime.record(); } }