//Todo : Weapon held public void HitDummy(int range) { IPooledEnumerable eable = m_Mobile.GetItemsInRange(range); foreach (Item item in eable) { if (item is TrainingDummy) { TrainingDummy dummy = (TrainingDummy)item; if (!dummy.Swinging) { if (MoveTo(item, false, 1)) { dummy.Use(m_Mobile, (BaseWeapon)m_Mobile.Weapon); // Repeat the animation m_Schedule.nextAct = DateTime.Now; break; } } } } eable.Free(); }