protected override void OnDeath() { if (owner != null && !(owner.Equals(null)) && owner.GetUnitsCommanding().Contains(this)) { owner.GetUnitsCommanding().Remove(this); } base.OnDeath(); }