public void DamageTarget(double rand) { if(Target == null) return; IEntity t = target as IEntity; if(t == null) return; // Damage t.Damage(ComputeDamage(rand)); if(OnAttackMade != null) OnAttackMade(this, t); }